Skip to content

Assertion failed on underscore in type pattern #16792

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

Closed
Odomontois opened this issue Jan 31, 2023 · 1 comment · Fixed by #16795
Closed

Assertion failed on underscore in type pattern #16792

Odomontois opened this issue Jan 31, 2023 · 1 comment · Fixed by #16795

Comments

@Odomontois
Copy link

Compiler version

3.2.2

Minimized code

val x = (1, 1) match
    case _: (_ *: _) => ()

Output (click arrow to expand)

[error] java.lang.AssertionError: assertion failed
[error] scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:11)
[error] dotty.tools.dotc.typer.Typer$$anon$3.transform(Typer.scala:1703)

@Odomontois Odomontois added itype:bug itype:crash stat:needs triage Every issue needs to have an "area" and "itype" label labels Jan 31, 2023
@nicolasstucki nicolasstucki removed the stat:needs triage Every issue needs to have an "area" and "itype" label label Feb 1, 2023
@nicolasstucki
Copy link
Contributor

nicolasstucki commented Feb 1, 2023

This is already fixed. It will work on 3.3.0

nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Feb 1, 2023
@nicolasstucki nicolasstucki self-assigned this Feb 1, 2023
bishabosha added a commit that referenced this issue Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants