type_check_visitor fixes, array access and function call syntax change

This commit is contained in:
ProgramSnail 2023-05-07 09:25:38 +03:00
parent f7080ba856
commit c1dec6a0d1
16 changed files with 426 additions and 311 deletions

View file

@ -1,11 +1,11 @@
decl test_lambdas : Unit -> Unit
def test_lambdas = {
const lambda1 = \x -> x * x
const lambda2 = \x -> x.hash ()
const lambda2 = \x -> x.hash:
const lambda3 = \x y -> x + y
const lambda4 = \x -> {
; IO.print x
; IO.print: x
const y = x + x
return y
}