diff options
Diffstat (limited to 'compiler/configuration.nim')
-rw-r--r-- | compiler/configuration.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/configuration.nim b/compiler/configuration.nim index fb28ef675..e84579fdb 100644 --- a/compiler/configuration.nim +++ b/compiler/configuration.nim @@ -179,6 +179,9 @@ const {low(TNoteKind)..high(TNoteKind)} - {hintStackTrace, warnUninit}, {low(TNoteKind)..high(TNoteKind)}] +const + errXMustBeCompileTime* = "'$1' can only be used in compile-time context" + #[ errStringLiteralExpected: "string literal expected", errIntLiteralExpected: "integer literal expected", @@ -352,6 +355,5 @@ errXhasSideEffects: "'$1' can have side effects", errWrongSymbolX:, errIllegalCaptureX: "illegal capture '$1'", errXCannotBeClosure: "'$1' cannot have 'closure' calling convention", -errXMustBeCompileTime: "'$1' can only be used in compile-time context", , ]# |