mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 13:33:39 +00:00
compiler,reflect: sort out pkg path vs pkg name for named types
This commit is contained in:
@@ -243,6 +243,11 @@ func TestNamedTypes(t *testing.T) {
|
||||
t.Errorf("TypeOf.String()=%v, want %v", got, want)
|
||||
}
|
||||
|
||||
errorType := TypeOf((*error)(nil)).Elem()
|
||||
if s := errorType.String(); s != "error" {
|
||||
t.Errorf("error type = %v, want error", s)
|
||||
}
|
||||
|
||||
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