summary refs log tree commit diff stats
path: root/tests/errmsgs/t19224.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t19224.nim')
-rw-r--r--tests/errmsgs/t19224.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/errmsgs/t19224.nim b/tests/errmsgs/t19224.nim
new file mode 100644
index 000000000..7a9ecb2e7
--- /dev/null
+++ b/tests/errmsgs/t19224.nim
@@ -0,0 +1,12 @@
+discard """
+cmd: "nim check --hints:off $file"
+errormsg: ""
+nimout: '''
+t19224.nim(10, 10) Error: cannot infer element type of items([])
+t19224.nim(12, 10) Error: cannot infer element type of items(@[])
+'''
+"""
+
+for _ in []: discard
+
+for _ in @[]: discard