mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +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()})
|
panic(&ValueError{Method: "MapRange", Kind: v.Kind()})
|
||||||
}
|
}
|
||||||
|
|
||||||
keyType := v.typecode.Key().(*rawType)
|
keyType := v.typecode.key()
|
||||||
isKeyStoredAsInterface := keyType.Kind() != String && !keyType.isBinary()
|
isKeyStoredAsInterface := keyType.Kind() != String && !keyType.isBinary()
|
||||||
|
|
||||||
return &MapIter{
|
return &MapIter{
|
||||||
|
|||||||
Reference in New Issue
Block a user