about summary refs log tree commit diff
path: root/examples/14.pry
diff options
context:
space:
mode:
Diffstat (limited to 'examples/14.pry')
-rw-r--r--examples/14.pry19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/14.pry b/examples/14.pry
new file mode 100644
index 0000000..9792530
--- /dev/null
+++ b/examples/14.pry
@@ -0,0 +1,19 @@
+let main = () => i64 {
+	let fn = () => () => i64 {
+		return () => i64 {
+			return 4;
+		};
+	};
+
+	let x = fn();
+
+	return x();
+};
+
+/*
+
+Expected stdout:
+
+Expected return: 4
+
+*/