mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 13:33:39 +00:00
compiler: implement operations on nil hashmaps
* comparing a map against nil * getting the length of a nil map
This commit is contained in:
Vendored
+2
@@ -48,3 +48,5 @@ map read: seven = 7
|
||||
twelve = 12
|
||||
lookup with comma-ok: eight 8 true
|
||||
lookup with comma-ok: nokey 0 false
|
||||
false true 2
|
||||
true false 0
|
||||
|
||||
Reference in New Issue
Block a user