fix threading tests

* more type names are valid expressions now
* void is properly stripped off during generic instantiation
This commit is contained in:
Zahary Karadjov
2013-05-26 16:23:23 +03:00
parent d82a032566
commit d5fffc032f
2 changed files with 17 additions and 9 deletions

View File

@@ -1769,7 +1769,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
of nkBind:
Message(n.info, warnDeprecated, "bind")
result = semExpr(c, n.sons[0], flags)
of nkTypeOfExpr:
of nkTypeOfExpr, nkTupleTy, nkRefTy..nkEnumTy:
var typ = semTypeNode(c, n, nil).skipTypes({tyTypeDesc})
result = symNodeFromType(c, typ, n.info)
of nkCall, nkInfix, nkPrefix, nkPostfix, nkCommand, nkCallStrLit: