summary refs log tree commit diff stats
path: root/tests/parser/tstmtlist_expr.nim
blob: 8b4bb85057fae2e43056e95c969e154e39c975fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
discard """
  output: '''10'''
"""

proc xx(a: int): int =
  let y = 0
  return
    var x = 0
    x + y

proc b(x: int): int = 
  raise 
    var e: ref Exception
    new(e)
    e.msg = "My Exception msg"
    e

##issue 4035
echo(5 +
5)