You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have an minimum reproduce with C# code, but can be tested with Assemblies from netcoreapp3.0. Seems need an method without .locals init, and variable.HasInitialValue is false here.
[System.Linq]System.Collections.Generic.LargeArrayBuilder<T>.CopyTo(CopyPosition position, T[] array, int arrayIndex, int count)(netcoreapp3.0)
and [System.Text.Json]System.Text.Json.JsonNode.Parse(...)(netcoreapp5.0 ONLY)
The text was updated successfully, but these errors were encountered:
siegfriedpammer
changed the title
Some DisplayClass in local function is not removed.
TransformDisplayClassUsage: Support methods without .locals init
Feb 29, 2020
Tested with master(6.0.0.5337-alpha1)
I don't have an minimum reproduce with C# code, but can be tested with Assemblies from netcoreapp3.0. Seems need an method without
.locals init
, andvariable.HasInitialValue
is false here.ILSpy/ICSharpCode.Decompiler/IL/Transforms/TransformDisplayClassUsage.cs
Line 125 in 9bb2ea8
[System.Linq]System.Collections.Generic.LargeArrayBuilder<T>.CopyTo(CopyPosition position, T[] array, int arrayIndex, int count)
(netcoreapp3.0)and
[System.Text.Json]System.Text.Json.JsonNode.Parse(...)
(netcoreapp5.0 ONLY)The text was updated successfully, but these errors were encountered: