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

Compiler "Failed to emit module" with empty var tuple pattern #36496

Closed
gafter opened this issue Jun 17, 2019 · 0 comments · Fixed by #36678
Closed

Compiler "Failed to emit module" with empty var tuple pattern #36496

gafter opened this issue Jun 17, 2019 · 0 comments · Fixed by #36678
Assignees
Labels
4 - In Review A fix for the issue is submitted for review. Area-Compilers Bug
Milestone

Comments

@gafter
Copy link
Member

gafter commented Jun 17, 2019

The following program does not compile:

public class C
{
    public static void Main() { }
    public void M(C c)
    {
        if (c is var ()) { }
    }
    public void Deconstruct() { }
}

The error is "error CS7038: Failed to emit module"

@gafter gafter added this to the 16.3 milestone Jun 17, 2019
@gafter gafter self-assigned this Jun 17, 2019
@gafter gafter added this to In Development in Compiler: Pattern-Matching Jun 17, 2019
gafter added a commit to gafter/roslyn that referenced this issue Jun 21, 2019
@gafter gafter moved this from In Development to In Review in Compiler: Pattern-Matching Jun 21, 2019
@gafter gafter added the 4 - In Review A fix for the issue is submitted for review. label Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - In Review A fix for the issue is submitted for review. Area-Compilers Bug
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant