fix a small bug with return values

This commit is contained in:
Alex Zenla
2025-07-28 20:50:33 -07:00
parent 3dcac2f9e6
commit d0e2f2a05e
2 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,9 @@
func depth(i: int32) {
if i <= 0 {
return None
}
println("Depth: ", i)
depth(i - 1)
}
export func main() {
@ -11,5 +15,19 @@ export func main() {
true
}
return println("uhm, bad")
if true {
} else {
}
if false {
} else {
}
depth(500)
println("uhm, bad")
}