From a7ebbad8cfd38864dc84f6c5221d94296f3caed0 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 (cherry picked from commit a39123c93c9d2976300f1b8eba09d40b16f1c46c) --- 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 0a14afb027..f3d7229d2a 100644 --- a/compiler/injectdestructors.nim +++ b/compiler/injectdestructors.nim @@ -1057,7 +1057,7 @@ proc injectDefaultCalls(n: PNode, c: var Con) = proc extractDestroysForTemporaries(c: Con, destroys: PNode): PNode = result = newNodeI(nkStmtList, destroys.info) for i in 0..