ssa: support runtime.map

This commit is contained in:
visualfc
2024-06-28 22:01:58 +08:00
parent e05e61a59b
commit 2ccd1625e7
15 changed files with 1391 additions and 102 deletions

12
cl/_testrt/makemap/in.go Normal file
View File

@@ -0,0 +1,12 @@
package main
func main() {
m := make(map[int]string)
m[1] = "hello"
m[2] = "world"
println(m[1], m[2])
v, ok := m[2]
println(v, ok)
v2, ok := m[10]
println(v2, ok)
}