fixes #2073
This commit is contained in:
parent
c91ca82a43
commit
ada0f14711
4 changed files with 20 additions and 4 deletions
|
|
@ -3161,7 +3161,7 @@ when hostOS != "standalone":
|
|||
x[j+i] = item[j]
|
||||
inc(j)
|
||||
|
||||
proc compiles*(x): bool {.magic: "Compiles", noSideEffect.} =
|
||||
proc compiles*(x: expr): bool {.magic: "Compiles", noSideEffect.} =
|
||||
## Special compile-time procedure that checks whether `x` can be compiled
|
||||
## without any semantic error.
|
||||
## This can be used to check whether a type supports some operation:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue