From 9a186053a690f2216b43355549c8aa7e2959583c Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 20:53:59 +0000
Subject: [PATCH] better error reporting
---
test_scripts/object.vs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/test_scripts/object.vs b/test_scripts/object.vs
index 753bc57..ce29033 100644
--- a/test_scripts/object.vs
+++ b/test_scripts/object.vs
@@ -1,6 +1,6 @@
object $person = {
- string name: "Szoni",
+ string name: "Batman",
int age: 37
};
@@ -8,7 +8,7 @@
object $person2 = {
- string name: "Not Szoni",
+ string name: "Not Batman",
int age: 37,
object children: {
string name: "Child1",
@@ -24,9 +24,9 @@
printnl("Person name: ", $person_name);
-printnl("Child1 old age: ",$person2->children->age);
-$person2->children->age = $person2->children->age + 2;
-printnl("Child1 new age: ",$person2->children->age);
+printnl("Child1 old age: ", $person2->children->age);
+$person2->children->age = 22;
+printnl("Child1 new age: ", $person2->children->age);
int $age = 10;
if ($person2->children->age > 18) {
--
Gitblit v1.9.3