summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-09 10:33:20 +0530
committerNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-09 10:33:20 +0530
commit93503c18aa8d649a9a128d80d40430d7f9e6aa21 (patch)
tree4ea6b6e7b81c07d90dff9aa03baea472495260ab /tests
parentb0f860d90fefc89219c1e2bc9f8815cde07a7b7c (diff)
downloadNim-93503c18aa8d649a9a128d80d40430d7f9e6aa21.tar.gz
Add test
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/t9908.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/errmsgs/t9908.nim b/tests/errmsgs/t9908.nim
new file mode 100644
index 000000000..ca135ed50
--- /dev/null
+++ b/tests/errmsgs/t9908.nim
@@ -0,0 +1,10 @@
+discard """
+errormsg: "Error: ordinal type expected"
+line: 10
+"""
+
+# https://github.com/nim-lang/Nim/issues/9908
+
+type
+    X = enum
+        a = ("a", "b")