-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong Collection initializer #3091
Labels
Comments
This is one is funny, because we already check for exactly that: ILSpy/ICSharpCode.Decompiler/IL/Transforms/TransformCollectionAndObjectInitializers.cs Lines 447 to 448 in d2d1c33
|
I just found that it only happens on Release |
mattsh247
pushed a commit
to mattsh247/ILSpy
that referenced
this issue
Jul 30, 2024
…e checks in AccessPathElement.IsMethodApplicable.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Input code
Erroneous output
Language version is C# 10.0 / VS2022
Collection initializer requires its type 'type' to implement System.Collections.IEnumerable.
Details
The text was updated successfully, but these errors were encountered: