Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*
This commit is contained in:
@@ -3,7 +3,7 @@ import mem:*;
|
||||
|
||||
fun main(): int {
|
||||
var b: int;
|
||||
var a: int* = &b;
|
||||
var a: *int = &b;
|
||||
a [ 0 ] = 7;
|
||||
print(a [ 0 ] );
|
||||
print(*a);
|
||||
|
||||
Reference in New Issue
Block a user