Improved type system
This commit is contained in:
@ -15,14 +15,14 @@ main() {
|
||||
assert i == 1 + 4
|
||||
}
|
||||
|
||||
reverse2(a Int, b Int) -> (Int, Int) {
|
||||
reverse2(a int, b int) -> (int, int) {
|
||||
return b, a
|
||||
}
|
||||
|
||||
reverse3(a Int, b Int, c Int) -> (Int, Int, Int) {
|
||||
reverse3(a int, b int, c int) -> (int, int, int) {
|
||||
return c, b, a
|
||||
}
|
||||
|
||||
mix4(a Int, b Int, c Int, d Int) -> (Int, Int, Int, Int) {
|
||||
mix4(a int, b int, c int, d int) -> (int, int, int, int) {
|
||||
return d + a, c + b, b + c, a + d
|
||||
}
|
Reference in New Issue
Block a user