mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 19:02:18 +00:00
mention -d:nimLegacyConvEnumEnum in error msg (#17928)
This commit is contained in:
@@ -1525,6 +1525,8 @@ proc typeMismatch*(conf: ConfigRef; info: TLineInfo, formal, actual: PType, n: P
|
||||
msg.add "\n.tag effect is 'any tag allowed'"
|
||||
of efLockLevelsDiffer:
|
||||
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)
|
||||
|
||||
proc isTupleRecursive(t: PType, cycleDetector: var IntSet): bool =
|
||||
|
||||
Reference in New Issue
Block a user