about summary refs log tree commit diff
path: root/examples/-1.pry
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-07-06 15:47:39 +0200
committerBaitinq <[email protected]>2025-07-06 15:47:39 +0200
commit469e0b26906a3ffb8d594ae5438039ef0af5f9b5 (patch)
tree117b622799287155907d42ee72d256cd0eb2d617 /examples/-1.pry
parentCodegen: Fix pointer assignment type checking (diff)
downloadpry-lang-469e0b26906a3ffb8d594ae5438039ef0af5f9b5.tar.gz
pry-lang-469e0b26906a3ffb8d594ae5438039ef0af5f9b5.tar.bz2
pry-lang-469e0b26906a3ffb8d594ae5438039ef0af5f9b5.zip
Boostrap: Improve parser and codegen function calls values
Diffstat (limited to 'examples/-1.pry')
-rw-r--r--examples/-1.pry6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/-1.pry b/examples/-1.pry
index 0f33c37..5d7b65c 100644
--- a/examples/-1.pry
+++ b/examples/-1.pry
@@ -2,9 +2,13 @@
 
 extern printf = (*i8, varargs) => void;
 
+let test = () => i64 {
+	return 2;
+};
+
 let main = () => i64 {
 	printf("HELLO WORLD!\n");
-	return 7;
+	return test();
 };
 
 /*