From 4ae4005f805c5b2e329b2e060fcf40169238a9f9 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sun, 26 May 2013 17:04:01 +0300 Subject: [PATCH] further fixes for void stripping. fixes tvoid. --- compiler/seminst.nim | 45 ++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/compiler/seminst.nim b/compiler/seminst.nim index 98f25efa7c..ed842d98ef 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 fixupProcTypeR(c: PContext, genericType: PType, - inst: TInstantiation): PType = +proc fixupProcType(c: PContext, genericType: PType, + inst: TInstantiation): PType = result = genericType if result == nil: return @@ -167,48 +167,53 @@ proc fixupProcTypeR(c: PContext, genericType: PType, if genericType.sons == nil: return var head = 0 for i in 0 ..