diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-09 13:26:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-09 13:26:28 -0400 |
| commit | 074cf22ad462eafe963e4a749b2b74cab51211a1 (patch) | |
| tree | e1d7f938f2d949cc5dcf67ca648f200663e36562 /test/functions.tm | |
| parent | 47fca946065508cff4151a32b3008c161983fd9d (diff) | |
Change function syntax from `func(args)->ret` to `func(args -> ret)`
Diffstat (limited to 'test/functions.tm')
| -rw-r--r-- | test/functions.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functions.tm b/test/functions.tm index 426c33b1..22d950d4 100644 --- a/test/functions.tm +++ b/test/functions.tm @@ -1,7 +1,7 @@ -func add(x:Int, y:Int)->Int: +func add(x:Int, y:Int -> Int): return x + y -func cached_heap(x:Int; cached)->@Int: +func cached_heap(x:Int->@Int; cached): return @x func main(): |
