about summary refs log tree commit diff
path: root/examples/7.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-02-15 10:56:08 +0100
committerBaitinq <[email protected]>2025-02-15 11:00:04 +0100
commitfa6d9cdf57db4244a331035d35d1b962630e3ae1 (patch)
treed3926279eb046bbc11d4102ba8b336d037596da1 /examples/7.src
parentExamples: Update initial example with types (diff)
downloadinterpreter-fa6d9cdf57db4244a331035d35d1b962630e3ae1.tar.gz
interpreter-fa6d9cdf57db4244a331035d35d1b962630e3ae1.tar.bz2
interpreter-fa6d9cdf57db4244a331035d35d1b962630e3ae1.zip
Feature: Introduce initial support for function return types
Diffstat (limited to 'examples/7.src')
-rw-r--r--examples/7.src8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/7.src b/examples/7.src
index 3fe60b6..c0690b6 100644
--- a/examples/7.src
+++ b/examples/7.src
@@ -1,10 +1,10 @@
-let ten = () => {
-	return () => {
+let ten = () => i64 {
+	return () => i64 {
 		return 10;
 	}();
-};
+}; /* TODO */
 
-let main = () => {
+let main = () => i64 {
 	let i = 4;
 	
 	if (1 - -1 * 2) == 5 - (-1 + 1 + ten() / 2) + 3 {