diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
| commit | 3c0a8f0b899a343f43caf9c95147b2cf77a7b525 (patch) | |
| tree | b7193a8021ef9ab57c71319ecad797bf51849025 /test/functions.tm | |
| parent | 5910998a19aab5dab2c761aea946cfbb09a37918 (diff) | |
Syntax tweak: use ':' for blocks
Diffstat (limited to 'test/functions.tm')
| -rw-r--r-- | test/functions.tm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functions.tm b/test/functions.tm index 13cdee55..426c33b1 100644 --- a/test/functions.tm +++ b/test/functions.tm @@ -1,10 +1,10 @@ -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; cached)->@Int: return @x -func main() +func main(): >> add(3, 5) = 8 |
