Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*
This commit is contained in:
@@ -22,6 +22,6 @@ fun main():int {
|
||||
println(mapEx[7])
|
||||
println(mapEx[20])
|
||||
mapEx.remove(20)
|
||||
mapEx.for_each(fun(key:int, value:char*) { print("key: "); print(key); print(", value: "); println(value); })
|
||||
mapEx.for_each(fun(key:int, value:*char) { print("key: "); print(key); print(", value: "); println(value); })
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user