Browse Source

Revert "#1252: Do not accidentally create casts to object?."

This reverts commit 27b075ae7a.
pull/1317/head
Daniel Grunwald 7 years ago
parent
commit
29e69e46ef
  1. 6
      ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

6
ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

@ -640,9 +640,9 @@ namespace ICSharpCode.Decompiler.CSharp @@ -640,9 +640,9 @@ namespace ICSharpCode.Decompiler.CSharp
} else {
targetType = compilation.FindType(inst.InputType.ToKnownTypeCode(leftUType.GetSign()));
}
if (inst.IsLifted) {
targetType = NullableType.Create(compilation, targetType);
}
}
if (inst.IsLifted) {
targetType = NullableType.Create(compilation, targetType);
}
if (targetType.Equals(left.Type)) {
right = right.ConvertTo(targetType, this);

Loading…
Cancel
Save