From bb532a697edad1bac60a87a7ff43956c9635973d Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 20 Nov 2014 21:02:51 +0100 Subject: fixes #1562, fixes #1543 --- compiler/semtypinst.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/semtypinst.nim') diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 9c15be635..064bbf823 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -306,6 +306,8 @@ proc handleGenericInvokation(cl: var TReplTypeVars, t: PType): PType = newbody.deepCopy = cl.c.instDeepCopy(cl.c, dc, result, cl.info) proc eraseVoidParams*(t: PType) = + # transform '(): void' into '()' because old parts of the compiler really + # doesn't deal with '(): void': if t.sons[0] != nil and t.sons[0].kind == tyEmpty: t.sons[0] = nil -- cgit 1.4.1-2-gfad0