mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
reflect: tweak v.typecode.Key().(*rawType) -> v.typecode.key()
This commit is contained in:
@@ -846,7 +846,7 @@ func (v Value) MapRange() *MapIter {
|
||||
panic(&ValueError{Method: "MapRange", Kind: v.Kind()})
|
||||
}
|
||||
|
||||
keyType := v.typecode.Key().(*rawType)
|
||||
keyType := v.typecode.key()
|
||||
isKeyStoredAsInterface := keyType.Kind() != String && !keyType.isBinary()
|
||||
|
||||
return &MapIter{
|
||||
|
||||
Reference in New Issue
Block a user