Cleaning up parsing / typechecking of calls slightly, adding any vargs

This commit is contained in:
Krzosa Karol
2022-06-20 09:28:38 +02:00
parent aa5741203f
commit 4e288dcfab
7 changed files with 84 additions and 67 deletions

View File

@@ -13,10 +13,9 @@ test_arrays :: ()
assert(i+1 == array1[i])
array6: []*S64 = {&array1[0]}
for array1
*it = 0
for i := 0, i < length_of(array1), i+=1
assert(0 == array1[i])
for array1;; *it = 0
for array2;; *it = 0
for i := 0, i < length_of(array1), i+=1;; assert(0 == array1[i])
test_any :: ()
some_int_value := 10
@@ -25,6 +24,9 @@ test_any :: ()
imp_any := thing
assert(thing.type != Any)
any_array := []Any{some_int_value, thing}
for any_array
assert(it.type == S64)
Some_Struct :: struct
thing: int