reflect: add Type.ConvertibleTo

This commit is contained in:
Damian Gryski
2026-05-25 11:07:52 -07:00
committed by Damian Gryski
parent 3fb0a90854
commit a93640662e
2 changed files with 88 additions and 1 deletions
+1 -1
View File
@@ -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 {