use doAssert in static proc (https://github.com/status-im/nim-beacon-chain/pull/585#discussion_r350073704) closes #582
This commit is contained in:
parent
a8de94ad05
commit
ea241e407d
|
@ -92,7 +92,7 @@ proc inspectType(tImpl, xSubField, ySubField: NimNode, stmts: var NimNode) =
|
||||||
inspectType(tImpl[0], xSubField, ySubField, stmts)
|
inspectType(tImpl[0], xSubField, ySubField, stmts)
|
||||||
of {nnkSym, nnkBracketExpr}:
|
of {nnkSym, nnkBracketExpr}:
|
||||||
if tImpl.kind == nnkBracketExpr:
|
if tImpl.kind == nnkBracketExpr:
|
||||||
assert tImpl[0].eqIdent"List" or tImpl[0].eqIdent"seq" or tImpl[0].eqIdent"array", "Error: unsupported generic type: " & $tImpl[0]
|
doAssert tImpl[0].eqIdent"List" or tImpl[0].eqIdent"seq" or tImpl[0].eqIdent"array", "Error: unsupported generic type: " & $tImpl[0]
|
||||||
compareContainerStmt(xSubField, ySubField, stmts)
|
compareContainerStmt(xSubField, ySubField, stmts)
|
||||||
elif $tImpl in builtinTypes:
|
elif $tImpl in builtinTypes:
|
||||||
compareStmt(xSubField, ySubField, stmts)
|
compareStmt(xSubField, ySubField, stmts)
|
||||||
|
|
Loading…
Reference in New Issue