summary refs log tree commit diff stats
path: root/tests/parser/ttry.nim
blob: 190b0b8dcb612a96b06aa8b9e5511195e18ba0aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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