diff options
author | Damian Gryski <[email protected]> | 2023-03-22 16:44:58 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-03-25 22:32:29 +0100 |
commit | f7880e73d84f559c9035945aae413af4e2f64a49 (patch) | |
tree | 2b686c7f36405aad4a6b2cd64b5ebb2488257ade /src/reflect | |
parent | 3aa8c8e0d15a0fcaadbb8fb7d3c42e232f563af8 (diff) | |
download | tinygo-f7880e73d84f559c9035945aae413af4e2f64a49.tar.gz tinygo-f7880e73d84f559c9035945aae413af4e2f64a49.zip |
reflect: tweak v.typecode.Key().(*rawType) -> v.typecode.key()
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/value.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/value.go b/src/reflect/value.go index 025d8618a..c58d70840 100644 --- a/src/reflect/value.go +++ b/src/reflect/value.go @@ -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{ |