From 93503c18aa8d649a9a128d80d40430d7f9e6aa21 Mon Sep 17 00:00:00 2001 From: Neelesh Chandola Date: Sun, 9 Dec 2018 10:33:20 +0530 Subject: [PATCH] Add test --- tests/errmsgs/t9908.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/errmsgs/t9908.nim diff --git a/tests/errmsgs/t9908.nim b/tests/errmsgs/t9908.nim new file mode 100644 index 0000000000..ca135ed50c --- /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")