mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-18 08:58:39 +00:00
NimScript: make the compiler shut up about effects it doesn't know about
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
|
||||
template builtin = discard
|
||||
|
||||
# We know the effects better than the compiler:
|
||||
{.push hint[XDeclaredButNotUsed]: off.}
|
||||
|
||||
proc listDirs*(dir: string): seq[string] =
|
||||
## Lists all the subdirectories (non-recursively) in the directory `dir`.
|
||||
builtin
|
||||
@@ -269,3 +272,5 @@ proc requires*(deps: varargs[string]) =
|
||||
## Nimble support: Call this to set the list of requirements of your Nimble
|
||||
## package.
|
||||
for d in deps: requiresData.add(d)
|
||||
|
||||
{.pop.}
|
||||
|
||||
Reference in New Issue
Block a user