mention -d:nimLegacyConvEnumEnum in error msg (#17928)
This commit is contained in:
parent
8ce69d5841
commit
01f316cf1f
1 changed files with 2 additions and 0 deletions
|
|
@ -1525,6 +1525,8 @@ proc typeMismatch*(conf: ConfigRef; info: TLineInfo, formal, actual: PType, n: P
|
||||||
msg.add "\n.tag effect is 'any tag allowed'"
|
msg.add "\n.tag effect is 'any tag allowed'"
|
||||||
of efLockLevelsDiffer:
|
of efLockLevelsDiffer:
|
||||||
msg.add "\nlock levels differ"
|
msg.add "\nlock levels differ"
|
||||||
|
if formal.kind == tyEnum and actual.kind == tyEnum:
|
||||||
|
msg.add "\nmaybe use `-d:nimLegacyConvEnumEnum` for a transition period"
|
||||||
localError(conf, info, msg)
|
localError(conf, info, msg)
|
||||||
|
|
||||||
proc isTupleRecursive(t: PType, cycleDetector: var IntSet): bool =
|
proc isTupleRecursive(t: PType, cycleDetector: var IntSet): bool =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue