-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Wrong emitted metadata for nested generic types #17797
Labels
Milestone
Comments
Try with realsig- |
@vzarytovskii Can confirm it helps, thanks! |
Thanks. We turned it off by default in rc2, but compiler itself still builds with realsig |
Yes this is real ... needs fixing. |
This is fixed in rtm (by rolling back the realsig), @KevinRansom do you want to keep it open to track the fix with |
@vzarytovskii i do want to keep it open. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The generated types for (at least some) closures miss type parameters from their containing types.
When defining a nested type, it should redefine all type parameters from its containing type (see I.10.7.1 from ECMA-335).
Closures like
Internal.Utilities.Collections.AgedLookup`3+-ctor@25-5
miss their parent's type parameters and have only 1 of the 4 type parameters needed. This was caught by an assert in R#/Rider metadata reading code. We're disabling the assert for now, but it looks like the code generation should be fixed on the F# compiler side.The text was updated successfully, but these errors were encountered: