Browse Source

Fix #1611: Always remove the initializedObj dummy expression in CallBuilder.BuildDictionaryInitializerExpression

pull/1633/head
Siegfried Pammer 6 years ago
parent
commit
1531302c8d
  1. 3
      ICSharpCode.Decompiler/CSharp/CallBuilder.cs

3
ICSharpCode.Decompiler/CSharp/CallBuilder.cs

@ -447,6 +447,9 @@ namespace ICSharpCode.Decompiler.CSharp @@ -447,6 +447,9 @@ namespace ICSharpCode.Decompiler.CSharp
var assignment = HandleAccessorCall(expectedTargetDetails, method, unused,
argumentList.Arguments.ToList(), argumentList.ArgumentNames);
if (((AssignmentExpression)assignment).Left is IndexerExpression indexer)
indexer.Target.ReplaceWith(n => null);
if (value != null)
return assignment;

Loading…
Cancel
Save