mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
36 lines
525 B
Nim
36 lines
525 B
Nim
# if
|
|
for i in 0..<1:
|
|
let x =
|
|
case false
|
|
of true:
|
|
42
|
|
of false:
|
|
if true:
|
|
continue
|
|
else:
|
|
raiseAssert "Won't get here"
|
|
|
|
# nested case
|
|
for i in 0..<1:
|
|
let x =
|
|
case false
|
|
of true:
|
|
42
|
|
of false:
|
|
case true
|
|
of true:
|
|
continue
|
|
of false:
|
|
raiseAssert "Won't get here"
|
|
|
|
# try except
|
|
for i in 0..<1:
|
|
let x =
|
|
case false
|
|
of true:
|
|
42
|
|
of false:
|
|
try:
|
|
continue
|
|
except:
|
|
raiseAssert "Won't get here" |