From bce03f60756fe7f8125b28bd9a7b67f073b3a256 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 29 Jun 2021 02:47:51 -0700 Subject: [PATCH] fix #16376 explicitGenericInstantiation --- compiler/semexprs.nim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index c885f4963694e..1dc2d5d11bd71 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1563,10 +1563,6 @@ proc semSubscript(c: PContext, n: PNode, flags: TExprFlags): PNode = # type parameters: partial generic specialization n[0] = semSymGenericInstantiation(c, n[0], s) result = explicitGenericInstantiation(c, n, s) - if result == n: - n[0] = copyTree(result) - else: - n[0] = result of skMacro, skTemplate: if efInCall in flags: # We are processing macroOrTmpl[] in macroOrTmpl[](...) call.