mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
19 lines
226 B
Nim
19 lines
226 B
Nim
discard """
|
|
output: '''hi
|
|
hi'''
|
|
"""
|
|
|
|
# bug #1742
|
|
|
|
template test(): expr =
|
|
let a = 0
|
|
defer: echo "hi"
|
|
a
|
|
|
|
let i = test()
|
|
|
|
import strutils
|
|
let x = try: parseInt("133a")
|
|
except: -1
|
|
finally: echo "hi"
|