mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
reflect: document which Convert() cases are still unimplemented
This commit is contained in:
@@ -1154,8 +1154,6 @@ func convertOp(src Value, typ Type) (Value, bool) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO(dgryski): Implement other cases
|
||||
|
||||
case String:
|
||||
rtype := typ.(*rawType)
|
||||
if typ.Kind() == Slice && !rtype.elem().isNamed() {
|
||||
@@ -1166,9 +1164,14 @@ func convertOp(src Value, typ Type) (Value, bool) {
|
||||
return cvtStringRunes(src, rtype), true
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// TODO(dgryski): Unimplemented:
|
||||
// Chan
|
||||
// Identical underlying types
|
||||
// Non-defined pointers types with same underlying base type
|
||||
// Interface <-> Type conversions
|
||||
|
||||
return Value{}, false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user