-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use of outer type argument in extension inline unapply(Seq) method causes compiler error #15188
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
Comments
The issue does not occur if |
Compiler version: 3.2.0-RC1-bin-20220514-bb29e20-NIGHTLY |
I ran into the same issue, you actually do not need any generics, and just class C
extension (ctx: C) inline def unapply(input: String): Option[String] = Some("hi")
@main def run = {
val O = new C
val O(x) = "3"
} |
We should check if #16358 fixes this |
nicolasstucki
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Nov 17, 2022
Fixes the computation of the inline unapply temporary unanimous unapply placeholder. Fixes scala#8577 Fixes scala#15188
nicolasstucki
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Nov 18, 2022
Fixes the computation of the inline unapply temporary unanimous unapply placeholder. Fixes scala#8577 Fixes scala#15188
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 7, 2022
* Fixes the computation of the inline unapply temporary unanimous unapply placeholder * Handle leading given parameters in inline unapplies Fixes scala#8577 Fixes scala#12991 Fixes scala#15188
little-inferno
pushed a commit
to little-inferno/dotty
that referenced
this issue
Jan 25, 2023
* Fixes the computation of the inline unapply temporary unanimous unapply placeholder * Handle leading given parameters in inline unapplies Fixes scala#8577 Fixes scala#12991 Fixes scala#15188
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
#15053
Minimized code
Output
Compiler error
Expectation
The text was updated successfully, but these errors were encountered: