Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*
This commit is contained in:
@@ -19,7 +19,7 @@ fun main(): int {
|
||||
var wooObject: firstObject;
|
||||
wooObject.objectNum = 7;
|
||||
print(wooObject.objectNum);
|
||||
var objPtr: firstObject* = &wooObject;
|
||||
var objPtr: *firstObject = &wooObject;
|
||||
objPtr->objectNum = 42;
|
||||
print(objPtr->objectNum);
|
||||
print("\n");
|
||||
|
||||
Reference in New Issue
Block a user