Disable warning about DotLikeOps
Give a clear compiler error when questionable is used with the -d:nimPreviewDotLikeOps flag. Reason: the option is likely to be deprecated or removed. More info: https://github.com/nim-lang/Nim/pull/19919
This commit is contained in:
parent
13c7ff7671
commit
22f2c9761a
|
@ -1,9 +1,14 @@
|
|||
# Style Check
|
||||
--styleCheck:usages
|
||||
if (NimMajor, NimMinor) < (1, 6):
|
||||
--styleCheck:hint
|
||||
else:
|
||||
--styleCheck:error
|
||||
|
||||
# Disable some warnings
|
||||
if (NimMajor, NimMinor) >= (1, 6):
|
||||
switch("warning", "DotLikeOps:off")
|
||||
|
||||
# begin Nimble config (version 1)
|
||||
when fileExists("nimble.paths"):
|
||||
include "nimble.paths"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import ./questionable/dotlike
|
||||
import ./questionable/options
|
||||
|
||||
export options
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
when defined(nimPreviewDotLikeOps):
|
||||
{.error: "DotLikeOps are not supported by questionable".}
|
Loading…
Reference in New Issue