aboutsummaryrefslogtreecommitdiff
path: root/examples/binary-ops.cup
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-02-02 07:28:42 -0500
committerMustafa Quraish <[email protected]>2022-02-02 07:37:39 -0500
commit957b054f4fd19a7f5078a5710033ce3c27a7961d (patch)
tree09e6422fad2341f5bebdb045ab871b77e4fe47ab /examples/binary-ops.cup
parentType checking of expressions / functions! (diff)
downloadcup-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/binary-ops.cup')
-rw-r--r--examples/binary-ops.cup2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/binary-ops.cup b/examples/binary-ops.cup
index 13e5083..a7a3cd2 100644
--- a/examples/binary-ops.cup
+++ b/examples/binary-ops.cup
@@ -1,3 +1,3 @@
-fn main() {
+fn main(): int {
return 2 + 5 * (12 / 4) - 1;
} \ No newline at end of file