From e9a3ffbc3d318911da5c46582a70288dd16275f3 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 7 Apr 2017 23:18:14 +0300 Subject: Restore the Nim's 0.14 proper handling of generic aliases A more efficient implementation is possible by restoring the old lifting ot tyGenericInvocation to tyGenericInst in liftTypeParam, but this fix will suffice for now. fixes #5087 fixes #5602 fixes #5641 fixes #5570 --- compiler/vm.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compiler/vm.nim') diff --git a/compiler/vm.nim b/compiler/vm.nim index 6a9545193..14800fb13 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -1606,6 +1606,12 @@ proc setupMacroParam(x: PNode, typ: PType): TFullReg = n.typ = x.typ result.node = n +iterator genericParamsInMacroCall*(macroSym: PSym, call: PNode): (PSym, PNode) = + let gp = macroSym.ast[genericParamsPos] + for i in 0 ..