mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-02 13:53:11 +00:00
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
16 lines
326 B
Nim
16 lines
326 B
Nim
# 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"
|
|
# end Nimble config
|