Improved type system
This commit is contained in:
parent
3550f9e24e
commit
b8e37fafae
62 changed files with 189 additions and 172 deletions
|
@ -1 +1 @@
|
|||
f(a Int,) -> Int { return a }
|
||||
f(a int,) -> int { return a }
|
|
@ -1 +1 @@
|
|||
f(,a Int) {}
|
||||
f(,a int) {}
|
|
@ -2,6 +2,6 @@ main() {
|
|||
writeToMemory(42)
|
||||
}
|
||||
|
||||
writeToMemory(p *Any) {
|
||||
writeToMemory(p *any) {
|
||||
p[0] = 'A'
|
||||
}
|
|
@ -2,6 +2,6 @@ main() {
|
|||
x := 1 + f(x)
|
||||
}
|
||||
|
||||
f(x Int) -> Int {
|
||||
f(x int) -> int {
|
||||
return x
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue