Disable unused warnings for error await template too (#14531)
This commit is contained in:
parent
004b0759c5
commit
5d0cf883c1
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ proc asyncSingleProc(prc: NimNode): NimNode {.compileTime.} =
|
||||||
# based on the yglukhov's patch to chronos: https://github.com/status-im/nim-chronos/pull/47
|
# based on the yglukhov's patch to chronos: https://github.com/status-im/nim-chronos/pull/47
|
||||||
# however here the overloads are placed inside each expanded async
|
# however here the overloads are placed inside each expanded async
|
||||||
var awaitDefinition = quote:
|
var awaitDefinition = quote:
|
||||||
template await(f: typed): untyped =
|
template await(f: typed): untyped {.used.} =
|
||||||
static:
|
static:
|
||||||
error "await expects Future[T], got " & $typeof(f)
|
error "await expects Future[T], got " & $typeof(f)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue