From 957b054f4fd19a7f5078a5710033ce3c27a7961d Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Wed, 2 Feb 2022 07:28:42 -0500 Subject: Fix examples to include return type on main function With the fancy new type checking these are now required. --- examples/binary-ops.cup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/binary-ops.cup') 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 -- cgit v1.2.3