diff --git a/compiler/transf.nim b/compiler/transf.nim index 3059d8fe6b251..07179e85cf341 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -393,6 +393,14 @@ template assignTupleUnpacking(c: PTransf, e: PNode) = let rhs = transform(c, newTupleAccess(c.graph, e, i)) result.add(asgnTo(lhs, rhs)) +proc hasViewTypes(typ: PType): bool = + if typ.kind == tyTuple: + result = false + for i in 0..