This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Merge changes from TFS - #1628
Merged
Merged
Conversation
This issue is actually two independent bugs in order to get the test running. The first issue was the Mcg crash at compile time in Analyzer.cs. The if conditional was permitting a broader range of types than the unspecialization logic was prepared to handle. In this case it was the type was an array of a generic type, but other problematic types are theoretically possible. I fixed the issue by creating UnspecializedStructural, which should handle any type spec that could be meaningfully unspecialized, which is to say anything except a formal generic parameter. The second issue is that the reflection code wasn't able to find the enum info for a generic enum. The previous code was looking up the instantiated type and no metadata was encoded for that instantiation. The new code does the lookup on the generic definition of the enum which we do have. We are assuming that the generic parameters in an enum have no meaningful impact, but if that was ever proven false then we'd need to encode metadata for each instantiation or do some more complicated runtime calculation. [tfs-changeset: 1621542]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.