Skip to content
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

InvalidOperationException in StackOptimizerPass1.IsIndirectAssignment with x! = null; #28377

Closed
cston opened this issue Jul 9, 2018 · 1 comment
Labels
Area-Compilers Bug New Language Feature - Nullable Reference Types Nullable Reference Types Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Milestone

Comments

@cston
Copy link
Member

cston commented Jul 9, 2018

class Program
{
    static void Main()
    {
        object x;
        x! = null;
    }
}
System.InvalidOperationException: Unexpected value 'PassByCopy' 
of type 'Microsoft.CodeAnalysis.CSharp.BoundKind'
   at Microsoft.CodeAnalysis.CSharp.CodeGen.StackOptimizerPass1.IsIndirectAssignment(…)
@jcouv
Copy link
Member

jcouv commented Jan 30, 2019

This was fixed (I think by #32850)
I'll add a test to verify

@sharwell sharwell added Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented and removed 3 - Working labels Feb 1, 2019
@sharwell sharwell modified the milestones: 16.0, 16.0.P4 Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Bug New Language Feature - Nullable Reference Types Nullable Reference Types Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Projects
None yet
Development

No branches or pull requests

5 participants