examples/lang/panic/main.mcl
raw| 1 | class foo() { |
| 2 | panic(false) # should NOT panic |
| 3 | panic(false) # should NOT panic |
| 4 | panic("") # should NOT panic |
| 5 | panic("") # should NOT panic |
| 6 | panic(true) # should panic |
| 7 | panic(true) # should panic |
| 8 | panic("fail3") # should panic |
| 9 | panic("fail4") # should panic |
| 10 | |
| 11 | test "nested-test" { |
| 12 | anotherstr => "hello!\n", |
| 13 | } |
| 14 | } |