From 5c7ae1407425d8a595ea8841b669e30e61e29307 Mon Sep 17 00:00:00 2001 From: Daniil Yarancev Date: Mon, 14 Aug 2017 18:43:39 +0300 Subject: [PATCH] Fixes #5965 (#6237) --- compiler/semobjconstr.nim | 7 ++++++- tests/constructors/t5965_1.nim | 10 ++++++++++ tests/constructors/t5965_2.nim | 10 ++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tests/constructors/t5965_1.nim create mode 100644 tests/constructors/t5965_2.nim diff --git a/compiler/semobjconstr.nim b/compiler/semobjconstr.nim index f4c2255269..b331d05a15 100644 --- a/compiler/semobjconstr.nim +++ b/compiler/semobjconstr.nim @@ -44,7 +44,9 @@ proc locateFieldInInitExpr(field: PSym, initExpr: PNode): PNode = let fieldId = field.name.id for i in 1 ..