diff options
Diffstat (limited to 'compiler/evals.nim')
-rwxr-xr-x | compiler/evals.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/evals.nim b/compiler/evals.nim index bb0e5936d..3f801e123 100755 --- a/compiler/evals.nim +++ b/compiler/evals.nim @@ -864,8 +864,7 @@ proc evalTypeTrait*(n: PNode, context: PSym): PNode = ## XXX: This should be pretty much guaranteed to be true # by the type traits procs' signatures, but until the # code is more mature it doesn't hurt to be extra safe - internalAssert n.sons.len >= 2 and n.sons[1].kind == nkSym and - n.sons[1].sym.typ.kind == tyTypeDesc + internalAssert n.sons.len >= 2 and n.sons[1].kind == nkSym let typ = n.sons[1].sym.typ.skipTypes({tyTypeDesc}) case n.sons[0].sym.name.s.normalize |