From d1112d4b5f898dc5cfd9d189fcceabbd2ab3c582 Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 21 Jan 2025 21:03:55 +0300 Subject: [PATCH] just ignore in transf, fix cast too --- compiler/semobjconstr.nim | 3 +-- compiler/transf.nim | 10 ++++++++++ tests/template/tgenericobjconstr.nim | 7 +++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/compiler/semobjconstr.nim b/compiler/semobjconstr.nim index 05d3c625c7a64..b2dfc36b16a5d 100644 --- a/compiler/semobjconstr.nim +++ b/compiler/semobjconstr.nim @@ -459,8 +459,7 @@ proc defaultConstructionError(c: PContext, t: PType, info: TLineInfo) = proc semObjConstr(c: PContext, n: PNode, flags: TExprFlags; expectedType: PType = nil): PNode = var t = semTypeNode(c, n[0], nil) result = newNodeIT(nkObjConstr, n.info, t) - result.add newNodeIT(nkType, n[0].info, t) - for i in 1..