diff options
Diffstat (limited to 'tests/reject/timportexcept.nim')
-rw-r--r-- | tests/reject/timportexcept.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/reject/timportexcept.nim b/tests/reject/timportexcept.nim new file mode 100644 index 000000000..93a7fd642 --- /dev/null +++ b/tests/reject/timportexcept.nim @@ -0,0 +1,10 @@ +discard """ + line: 9 + errormsg: "undeclared identifier: '%'" +""" + +import strutils except `%` + +# doesn't work +echo "$1" % "abc" + |