-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
NullReferenceException in AbstractFlowPass evaluating local function with switch statement in EE #59093
Comments
cc @tmat |
From discussion with @AlekseyTs and @cston, the EE is constructing a binding environment using PE symbols which causes source symbols to be parented to PE symbols, and that breaks some compiler assumptions. Instead, we would rather wait a bit and spend a few days to a week investigating a more systematic EE-side solution. In broad strokes, we would cook up a new method symbol and new containing type (parented to a source module, implementing a non-null |
…d during compilation for EE evaluation. Fixes dotnet#59093. Related to dotnet#58198.
Break in C# code and evaluate the following expression in the EE:
Result:
NullReferenceException
inAbstractFlowPass<,>.IsTraditionalSwitch()
sincecompilation == null
.The text was updated successfully, but these errors were encountered: