From a453d8d64d3d50c32eae630b5764fae50138bc08 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 19 Aug 2013 01:30:17 +0300 Subject: [PATCH] Revert "Revert "further fixes for void stripping. fixes tvoid."" This reverts commit d11cf5d1915d83159094f5074a6e17a72c65d9fa. --- 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 ..