Merge pull request #9909 from nc-x/fix-regression

Fix enum regression
This commit is contained in:
Andreas Rumpf 2018-12-11 08:36:15 +01:00 • committed by GitHub
commit 03c4231951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,10 @@
discard """
errormsg: "ordinal type expected"
line: 10
"""
# https://github.com/nim-lang/Nim/issues/9908
type
X = enum
a = ("a", "b")

View file

@ -0,0 +1,10 @@
discard """
errormsg: "ordinal type expected"
line: 10
"""
# https://github.com/nim-lang/Nim/pull/9909#issuecomment-445519287
type
E = enum
myVal = 80.9