diff --git a/compiler/transf.nim b/compiler/transf.nim index 399a8c468a..3059d8fe6b 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -702,6 +702,11 @@ proc putArgInto(arg: PNode, formal: PType): TPutArgInto = of nkAddr, nkHiddenAddr: result = putArgInto(arg[0], formal) if result == paViaIndirection: result = paFastAsgn + of nkHiddenStdConv, nkHiddenSubConv, nkConv: + if compareTypes(arg.typ, arg[1].typ, dcEqIgnoreDistinct, {IgnoreRangeShallow}): + result = putArgInto(arg[1], formal) + else: + result = paFastAsgn of nkCurly, nkBracket: for i in 0..