mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
Task proc in nimscript module will now export the proc it creates.
This commit is contained in:
@@ -242,7 +242,7 @@ template task*(name: untyped; description: string; body: untyped): untyped =
|
||||
## .. code-block:: nim
|
||||
## task build, "default build is via the C backend":
|
||||
## setCommand "c"
|
||||
proc `name Task`() = body
|
||||
proc `name Task`*() = body
|
||||
|
||||
let cmd = getCommand()
|
||||
if cmd.len == 0 or cmd ==? "help":
|
||||
|
||||
Reference in New Issue
Block a user