From fa0f04968fb37e7c717b4f6b73708cec6b380381 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 19 Oct 2017 13:00:10 +0200 Subject: bugfix: propagate the tfHasAsgn flag properly --- compiler/ast.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ast.nim b/compiler/ast.nim index cdc78be74..b0aca2d74 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -1420,7 +1420,7 @@ proc propagateToOwner*(owner, elem: PType) = owner.flags.incl tfHasMeta if tfHasAsgn in elem.flags: - let o2 = elem.skipTypes({tyGenericInst, tyAlias}) + let o2 = owner.skipTypes({tyGenericInst, tyAlias}) if o2.kind in {tyTuple, tyObject, tyArray, tySequence, tyOpt, tySet, tyDistinct}: o2.flags.incl tfHasAsgn -- cgit 1.4.1-2-gfad0