diff options
-rw-r--r-- | compiler/msgs.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 5ae2c4970..838735753 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -474,6 +474,10 @@ const hintMin* = hintSuccess hintMax* = high(TMsgKind) +static: + doAssert HintsToStr.len == ord(hintMax) - ord(hintMin) + 1 + doAssert WarningsToStr.len == ord(warnMax) - ord(warnMin) + 1 + type TNoteKind* = range[warnMin..hintMax] # "notes" are warnings or hints TNoteKinds* = set[TNoteKind] |