summary refs log tree commit diff stats
path: root/tests/modules/timportexcept.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/timportexcept.nim')
-rw-r--r--tests/modules/timportexcept.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/modules/timportexcept.nim b/tests/modules/timportexcept.nim
new file mode 100644
index 000000000..40b748088
--- /dev/null
+++ b/tests/modules/timportexcept.nim
@@ -0,0 +1,9 @@
+discard """
+  errormsg: "undeclared identifier: '%'"
+  line: 9
+"""
+
+import strutils except `%`
+
+# doesn't work
+echo "$1" % "abc"