From a76181288ae27b85521838ee87352727c3cba2f8 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 10:15:12 +0000
Subject: [PATCH] call function when variable defined
---
test_scripts/function_test.vs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/test_scripts/function_test.vs b/test_scripts/function_test.vs
index 4afec4e..f31ca37 100644
--- a/test_scripts/function_test.vs
+++ b/test_scripts/function_test.vs
@@ -7,7 +7,6 @@
function test = (int $i) {
print("Param: ",$i);
int $result = $i + 1;
- print("The result is: ", $result);
}
function increment = (int $i) int {
@@ -15,7 +14,7 @@
}
-test(1);
-
+int $z = 10;
+increment($z);
int $t = increment(2);
print("The result is: ", $t);
\ No newline at end of file
--
Gitblit v1.9.3