From fa6d9cdf57db4244a331035d35d1b962630e3ae1 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 15 Feb 2025 10:56:08 +0100 Subject: Feature: Introduce initial support for function return types --- examples/5.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/5.src') diff --git a/examples/5.src b/examples/5.src index 5d6baaa..7f4f38f 100644 --- a/examples/5.src +++ b/examples/5.src @@ -2,16 +2,16 @@ let x = 18; -let foo = () => { +let foo = () => i64 { let x = 1; print(x); return x; }; -let main = () => { +let main = () => i64 { print(x); let x = 2; - let y= foo(); + let y = foo(); print(x); return x + y; }; -- cgit 1.4.1