mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-11 23:19:30 +00:00
reflect: add Type.ConvertibleTo
This commit is contained in:
committed by
Damian Gryski
parent
3fb0a90854
commit
a93640662e
+1
-1
@@ -402,7 +402,7 @@ func (t *rawType) CanSeq2() bool {
|
||||
}
|
||||
|
||||
func (t *rawType) ConvertibleTo(u Type) bool {
|
||||
panic("unimplemented: (reflect.Type).ConvertibleTo()")
|
||||
return t.RawType.Convertibleto(u.(*rawType).RawType)
|
||||
}
|
||||
|
||||
func (t *rawType) Elem() Type {
|
||||
|
||||
Reference in New Issue
Block a user