From ecc6ab7ee06a5969fd871585de8b93120bd58a2b Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 10 Jul 2023 16:31:13 +0800 Subject: fixes #22237; fixes #21160; wrong cursor on unowned parameters in the for loop in ORC (#22240) fixes #22237; fixes #21160; wrong cursor on unowned parameters --- compiler/transf.nim | 17 ++++++++++++++-- tests/arc/t22237.nim | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 tests/arc/t22237.nim diff --git a/compiler/transf.nim b/compiler/transf.nim index 6ff1da899..d0428b725 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -654,7 +654,7 @@ proc findWrongOwners(c: PTransf, n: PNode) = else: for i in 0..