proc `!` was deprecated since Nim 0.18, and it doesn't exist in Nim 1.4

This commit is contained in:
narimiran 2020-09-08 14:40:45 +02:00
parent cd7ff6eed2
commit 13607032e9
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ macro check*(conditions: untyped): untyped =
result = newNimNode(nnkStmtList)
for node in checked:
if node.kind != nnkCommentStmt:
result.add(newCall(!"check", node))
result.add(newCall(newIdentNode("check"), node))
else:
let lineinfo = newStrLitNode(checked.lineinfo)