From d11cf5d1915d83159094f5074a6e17a72c65d9fa Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 27 May 2013 23:17:18 +0200 Subject: [PATCH] Revert "further fixes for void stripping. fixes tvoid." This reverts commit 4ae4005f805c5b2e329b2e060fcf40169238a9f9. --- compiler/seminst.nim | 45 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/compiler/seminst.nim b/compiler/seminst.nim index ed842d98ef..98f25efa7c 100644 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -148,8 +148,8 @@ proc instGenericContainer(c: PContext, info: TLineInfo, header: PType): PType = proc instGenericContainer(c: PContext, n: PNode, header: PType): PType = result = instGenericContainer(c, n.info, header) -proc fixupProcType(c: PContext, genericType: PType, - inst: TInstantiation): PType = +proc fixupProcTypeR(c: PContext, genericType: PType, + inst: TInstantiation): PType = result = genericType if result == nil: return @@ -167,53 +167,48 @@ proc fixupProcType(c: PContext, genericType: PType, if genericType.sons == nil: return var head = 0 for i in 0 ..