about summary refs log tree commit diff
path: root/examples/1.5.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/1.5.src
parentExamples: Update initial example with types (diff)
downloadpry-lang-fa6d9cdf57db4244a331035d35d1b962630e3ae1.tar.gz
pry-lang-fa6d9cdf57db4244a331035d35d1b962630e3ae1.tar.bz2
pry-lang-fa6d9cdf57db4244a331035d35d1b962630e3ae1.zip
Feature: Introduce initial support for function return types
Diffstat (limited to 'examples/1.5.src')
-rw-r--r--examples/1.5.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/1.5.src b/examples/1.5.src
index 0f6f7a0..1f99ee3 100644
--- a/examples/1.5.src
+++ b/examples/1.5.src
@@ -1,9 +1,9 @@
-let x = () => {
+let x = () => i64 {
 	print(22);
 	return 11;
 };
 
-let main = () => {
+let main = () => i64 {
 	let i = 4;
 
 	print(i);