This commit is contained in:
Araq
2015-02-08 14:15:02 +01:00
parent c91ca82a43
commit ada0f14711
4 changed files with 20 additions and 4 deletions

View File

@@ -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: