summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authornc-x <neelesh.chandola@outlook.com>2019-08-17 23:15:47 +0530
committerAndreas Rumpf <rumpf_a@web.de>2019-08-17 19:45:47 +0200
commitb68380f09b1926f4aea89b14b52bb442d5b002de (patch)
tree26c122e1f947888bc9b311c02d448be70d50c7a3 /tests/modules
parentdb9e27dffd266c0a69ac3d3544fb9aa563676096 (diff)
downloadNim-b68380f09b1926f4aea89b14b52bb442d5b002de.tar.gz
fixes #11872; include now gives a proper error message for all invalid infix operators (#11965)
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/tincludeas.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/modules/tincludeas.nim b/tests/modules/tincludeas.nim
new file mode 100644
index 000000000..b82e38b14
--- /dev/null
+++ b/tests/modules/tincludeas.nim
@@ -0,0 +1,6 @@
+discard """
+  errormsg: "Cannot use 'as' in 'include'."
+  line: 6
+"""
+
+include foobar as foo