mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-03 22:33:07 +00:00
add kind check
This commit is contained in:
parent
a7a7e99a2e
commit
388797861d
@ -21,7 +21,8 @@ proc undoSymbolResolution(expression, ident: NimNode): NimNode =
|
|||||||
macro without*(condition, errorname, body: untyped): untyped =
|
macro without*(condition, errorname, body: untyped): untyped =
|
||||||
## Used to place guards that ensure that a Result contains a value.
|
## Used to place guards that ensure that a Result contains a value.
|
||||||
## Exposes error when Result does not contain a value.
|
## Exposes error when Result does not contain a value.
|
||||||
|
|
||||||
|
errorname.expectKind(nnkIdent)
|
||||||
let errorIdent = ident $errorname
|
let errorIdent = ident $errorname
|
||||||
|
|
||||||
# Nim's early symbol resolution might have picked up a symbol with the
|
# Nim's early symbol resolution might have picked up a symbol with the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user