summary refs log tree commit diff stats
path: root/compiler/semtypinst.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-20 21:02:51 +0100
committerAraq <rumpf_a@web.de>2014-11-20 21:02:51 +0100
commitbb532a697edad1bac60a87a7ff43956c9635973d (patch)
treeccdf1750dd76c17737096a0a19a46065fbef48e8 /compiler/semtypinst.nim
parent3215666e33846db87e3b3ac1b6ab51a14f7b6912 (diff)
downloadNim-bb532a697edad1bac60a87a7ff43956c9635973d.tar.gz
fixes #1562, fixes #1543
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r--compiler/semtypinst.nim2
1 files changed, 2 insertions, 0 deletions
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