about summary refs log tree commit diff
path: root/examples/11.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-02-15 23:09:35 +0100
committerBaitinq <[email protected]>2025-02-15 23:12:27 +0100
commitadfde11dd5495cbe28e7faba6dd14b48897b8b7b (patch)
tree7c818a6892938a840dd35f7e631ba6bbb532075d /examples/11.src
parentCodegen: depend on libc for entrypoint (diff)
downloadpry-lang-adfde11dd5495cbe28e7faba6dd14b48897b8b7b.tar.gz
pry-lang-adfde11dd5495cbe28e7faba6dd14b48897b8b7b.tar.bz2
pry-lang-adfde11dd5495cbe28e7faba6dd14b48897b8b7b.zip
Codegen: start supporting types for function params
Diffstat (limited to 'examples/11.src')
-rw-r--r--examples/11.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/11.src b/examples/11.src
index f859a0b..adaabe4 100644
--- a/examples/11.src
+++ b/examples/11.src
@@ -1,10 +1,10 @@
 let main = () => i64 {
-	let x = (a) => i64 {
+	let x = (a: i64) => i64 {
 		print(a);
 		return 1;
 	};
 
-	let y = (f) => i64 {
+	let y = (f: (i64) => i64) => i64 {
 		return f(2);
 	};