Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*

This commit is contained in:
Nathan Braswell
2015-07-04 17:02:51 -04:00
parent d2b12fea35
commit 2c29846570
41 changed files with 149 additions and 166 deletions

View File

@@ -3,19 +3,19 @@ import io:*
obj test(Object) {
var counter:int
fun construct(): test* {
fun construct(): *test {
counter = 0
println("construct with 0")
return this
}
fun construct(it:int): test* {
fun construct(it:int): *test {
counter = it
print("construct with "); println(it)
return this
}
fun copy_construct(old: test*):void {
fun copy_construct(old: *test):void {
counter = old->counter+1
print("copy construct from "); print(old->counter); print(" to "); println(counter)
}