Improved type system

This commit is contained in:
2025-02-17 14:31:47 +01:00
parent 3550f9e24e
commit b8e37fafae
62 changed files with 189 additions and 172 deletions

View File

@ -1 +1 @@
f(a Int,) -> Int { return a }
f(a int,) -> int { return a }

View File

@ -1 +1 @@
f(,a Int) {}
f(,a int) {}

View File

@ -2,6 +2,6 @@ main() {
writeToMemory(42)
}
writeToMemory(p *Any) {
writeToMemory(p *any) {
p[0] = 'A'
}

View File

@ -2,6 +2,6 @@ main() {
x := 1 + f(x)
}
f(x Int) -> Int {
f(x int) -> int {
return x
}