fixes a regression caused by overloadable enums even though they're opt-in (#18970)

This commit is contained in:
Andreas Rumpf 2021-10-07 15:07:24 +02:00 • committed by GitHub
commit 6f15af41a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 3 deletions

View file

@ -0,0 +1,4 @@
type
OtherEnum* = enum
Success, Failed, More

View file

@ -0,0 +1,13 @@
discard """
action: "compile"
"""
import options, mregression
type
MyEnum = enum
Success
template t =
echo some(Success)
t()