Files
Nim/tests/parser/ttry.nim
ringabout d0721eadf8 fixes #21144; try expression will not match the less indentation except (#21152)
fixes #21144; try expression will not match the less indent except
2022-12-21 21:46:14 +01:00

27 lines
362 B
Nim

# bug #21144
block:
try:
let c = try:
10
except ValueError as exc:
10
except ValueError as exc:
discard
if true:
block:
let c = try:
10
except ValueError as exc:
10
except OSError:
99
try:
let c = try:
10
except ValueError as exc:
10
except ValueError as exc:
discard