diff options
| author | Mustafa Quraish <[email protected]> | 2022-02-02 07:28:42 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-02-02 07:37:39 -0500 |
| commit | 957b054f4fd19a7f5078a5710033ce3c27a7961d (patch) | |
| tree | 09e6422fad2341f5bebdb045ab871b77e4fe47ab /examples/functions.cup | |
| parent | Type checking of expressions / functions! (diff) | |
| download | cup-957b054f4fd19a7f5078a5710033ce3c27a7961d.tar.xz cup-957b054f4fd19a7f5078a5710033ce3c27a7961d.zip | |
Fix examples to include return type on main function
With the fancy new type checking these are now required.
Diffstat (limited to 'examples/functions.cup')
| -rw-r--r-- | examples/functions.cup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/functions.cup b/examples/functions.cup index 89858c6..f24b55a 100644 --- a/examples/functions.cup +++ b/examples/functions.cup @@ -8,6 +8,6 @@ fn sum(n: int): int { return rec_sum(n, 0); } -fn main() { +fn main(): int { return sum(10); }
\ No newline at end of file |