Browse Source

Fix links inside object initializer.

pull/1360/head
Siegfried Pammer 7 years ago
parent
commit
ac149414eb
  1. 2
      ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

2
ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

@ -2232,7 +2232,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -2232,7 +2232,7 @@ namespace ICSharpCode.Decompiler.CSharp
.WithoutILInstruction();
} else {
return new NamedExpression(valuePath.Member.Name, value)
.WithRR(new MemberResolveResult(rr, memberPath.Member))
.WithRR(new MemberResolveResult(rr, valuePath.Member))
.WithoutILInstruction();
}
}

Loading…
Cancel
Save