From a39123c93c9d2976300f1b8eba09d40b16f1c46c Mon Sep 17 00:00:00 2001 From: cooldome Date: Mon, 11 May 2020 22:11:20 +0100 Subject: [PATCH] fix #14219 (#14225) Co-authored-by: cooldome --- compiler/injectdestructors.nim | 2 +- tests/arc/amodule.nim | 10 ++++++++++ tests/arc/tamodule.nim | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/arc/amodule.nim create mode 100644 tests/arc/tamodule.nim diff --git a/compiler/injectdestructors.nim b/compiler/injectdestructors.nim index 009c683aeb..431f9539f3 100644 --- a/compiler/injectdestructors.nim +++ b/compiler/injectdestructors.nim @@ -1064,7 +1064,7 @@ proc injectDefaultCalls(n: PNode, c: var Con) = proc extractDestroysForTemporaries(c: Con, destroys: PNode): PNode = result = newNodeI(nkStmtList, destroys.info) for i in 0..