From a9810c2281a2c4fc2265aa8c59fa9bf101e3a3b5 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sun, 10 Aug 2025 05:20:40 -0400 Subject: better error reporting around uninitialized values --- test.lang | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test.lang') 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 } -- cgit v1.2.3