-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Regression in inline matches, inline parameter gets proxied. #13411
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
Labels
Milestone
Comments
Could you minimize this example to not depend on lwjgl? |
done |
Minimized to class Foo
class Bar extends Foo
inline def thingy(a: Int = 0, b: Int = 0, inline c: Foo = new Bar) = {
inline c match {
case _: Bar =>
}
}
def x = 1
def test = thingy(b = x) |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 31, 2021
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 31, 2021
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 2, 2021
dwijnand
pushed a commit
to dwijnand/scala3
that referenced
this issue
Sep 2, 2021
olsdavis
pushed a commit
to olsdavis/dotty
that referenced
this issue
Apr 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.2-RC2
Minimized code
Output
Expectation
It should compile fine, as it did in prior versions
Note
To replicate this bug, several conditions have to be met (I couldn't reproduce it otherwise):
The text was updated successfully, but these errors were encountered: