mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 13:03:39 +00:00
compiler, reflect: add Type.PkgPath
This commit is contained in:
committed by
Damian Gryski
parent
c192c7376e
commit
2de64d3f4e
@@ -221,6 +221,10 @@ func TestNamedTypes(t *testing.T) {
|
||||
t.Errorf("TypeOf.Name()=%v, want %v", got, want)
|
||||
}
|
||||
|
||||
if got, want := TypeOf(named).String(), "reflect_test.namedString"; got != want {
|
||||
t.Errorf("TypeOf.String()=%v, want %v", got, want)
|
||||
}
|
||||
|
||||
m := make(map[[4]uint16]string)
|
||||
|
||||
if got, want := TypeOf(m).String(), "map[[4]uint16]string"; got != want {
|
||||
|
||||
Reference in New Issue
Block a user