Fix invalid pointer in struct type, more work on calls

This commit is contained in:
Krzosa Karol
2022-05-30 11:20:00 +02:00
parent 671853287a
commit b2d3e9d8e1
4 changed files with 17 additions and 5 deletions

View File

@@ -25,11 +25,14 @@ add_10 :: (size: int): int
constant :: 20; result := constant + 10
v5 := add([0] = 1, [1] = 2)
v1 := add(a = 1)
v2 := add(a = 1, b = 2)
v3 := add([0] = 1)
v4 := add(b = 1, a = 2)
v5 := add([0] = 1, [1] = 2)
// v_err := add([0] = 1, 10) // illegal
// v_err := add([1] = 1) // illegal
// v_err := add() // illegal
return v3