summary refs log tree commit diff stats
path: root/tests/errmsgs/t9908_02.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t9908_02.nim')
-rw-r--r--tests/errmsgs/t9908_02.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/errmsgs/t9908_02.nim b/tests/errmsgs/t9908_02.nim
new file mode 100644
index 000000000..4fc60b3df
--- /dev/null
+++ b/tests/errmsgs/t9908_02.nim
@@ -0,0 +1,10 @@
+discard """
+errormsg: "ordinal type expected; given: float"
+line: 10
+"""
+
+# https://github.com/nim-lang/Nim/pull/9909#issuecomment-445519287
+
+type
+  E = enum
+    myVal = 80.9