From 9c45e33d8c8b1a5f5fca69a467fda87b9b547057 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 27 May 2013 23:17:48 +0200 Subject: [PATCH] Revert "fix threading tests" This reverts commit d5fffc032f2b390abd7b4c4fea2e49b1a0ef9736. --- compiler/semexprs.nim | 2 +- compiler/seminst.nim | 24 ++++++++---------------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index daad93a857..e07821d1f5 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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, nkTupleTy, nkRefTy..nkEnumTy: + of nkTypeOfExpr: var typ = semTypeNode(c, n, nil).skipTypes({tyTypeDesc}) result = symNodeFromType(c, typ, n.info) of nkCall, nkInfix, nkPrefix, nkPostfix, nkCommand, nkCallStrLit: diff --git a/compiler/seminst.nim b/compiler/seminst.nim index 98f25efa7c..431635b9c5 100644 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -165,35 +165,28 @@ proc fixupProcTypeR(c: PContext, genericType: PType, of tyOpenArray, tyArray, tySet, tySequence, tyTuple, tyProc, tyPtr, tyVar, tyRef, tyOrdinal, tyRange, tyVarargs: if genericType.sons == nil: return - var head = 0 for i in 0 ..