mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
20 lines
235 B
Nim
20 lines
235 B
Nim
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) |