Files
pork/examples/bad.pork

34 lines
273 B
Plaintext
Raw Permalink Normal View History

2025-07-26 00:47:32 -07:00
func depth(i: int32) {
2025-07-28 20:50:33 -07:00
if i <= 0 {
return None
}
2025-07-26 00:47:32 -07:00
println("Depth: ", i)
2025-07-28 20:50:33 -07:00
depth(i - 1)
2025-07-26 00:47:32 -07:00
}
export func main() {
if true {
false
}
if false {
true
}
2025-07-28 20:50:33 -07:00
if true {
} else {
}
if false {
} else {
}
depth(500)
println("uhm, bad")
2025-07-26 00:47:32 -07:00
}