summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-10 05:20:40 -0400
committerWormHeamer2025-08-10 05:20:40 -0400
commita9810c2281a2c4fc2265aa8c59fa9bf101e3a3b5 (patch)
treea9afaee0d6514505ccd35343bca8bb931a196f76 /test.lang
parentc9980711ce42de9cf58db35f41ce1ac42bfea0c7 (diff)
better error reporting around uninitialized values
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang7
1 files changed, 4 insertions, 3 deletions
diff --git a/test.lang b/test.lang
index d461439..4df4f82 100644
--- a/test.lang
+++ b/test.lang
@@ -1,11 +1,12 @@
func main(a, b i64) i64 {
let x i64, y bool
- if a < b {
+ if true {
let t = a
a := b
b := t
+ x := 3
} else {
- x := 2
+ //x := 2
}
- return (a + b) + x
+ return x
}