diff --git a/parser/func_test.go b/parser/func_test.go index 99facdf..ed10863 100644 --- a/parser/func_test.go +++ b/parser/func_test.go @@ -8,13 +8,13 @@ func TestFunc (test *testing.T) { --- func ro aBasicExternal > someInput:Int:mut - < someOutput:Int 4 + < someOutput:Int:<4> --- external func ro bMethod @ bird:{Bird} > someInput:Int:mut - < someOutput:Int 4 + < someOutput:Int:<4> --- external func ro cBasicPhrases @@ -101,20 +101,10 @@ func ro gControlFlow [otherThing] func ro hSetPhrase --- - [= x:Int 3] - [= y:{Int} [loc x]] - [= z:Int:8] - 398 - 9 - 2309 - 983 - -2387 - 478 - 555 - 123 - [= bird:Bird] - .that - .whenYou 99999 - .this 324 + let x:Int:<3> + let y:{Int}:<[loc x]> + let z:Int:8:<398 9 2309 983 -2387 478 555 123> + let bird:Bird:(.that:(.whenYou:<99999>) .this:<324>) + `, test) } diff --git a/tests/parser/func/main.arf b/tests/parser/func/main.arf index 79ab114..adee836 100644 --- a/tests/parser/func/main.arf +++ b/tests/parser/func/main.arf @@ -2,14 +2,14 @@ --- func ro aBasicExternal > someInput:Int:mut - < someOutput:Int 4 + < someOutput:Int:<4> --- external func ro bMethod @ bird:{Bird} > someInput:Int:mut - < someOutput:Int 4 + < someOutput:Int:<4> --- external @@ -124,13 +124,12 @@ func ro gControlFlow func ro hSetPhrase --- - = x:Int 3 + let x:Int:<3> # loc is a reference, similar to * in C - = y:{Int} [loc x] - = z:Int:8 - 398 9 2309 983 -2387 - 478 555 123 - = bird:Bird - .that - .whenYou 99999 - .this 324 + let y:{Int}:<[loc x]> + let z:Int:8: + <398 9 2309 983 -2387 + 478 555 123> + let bird:Bird:( + .that:(.whenYou:<99999>) + .this:<324>)