Skip to content

can't define right associative extension method with type parameter #11583

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
bishabosha opened this issue Mar 3, 2021 · 0 comments · Fixed by #11584
Closed

can't define right associative extension method with type parameter #11583

bishabosha opened this issue Mar 3, 2021 · 0 comments · Fixed by #11584
Labels
area:desugar Desugaring happens after parsing but before typing, see desugar.scala itype:bug
Milestone

Comments

@bishabosha
Copy link
Member

Compiler version

3.0.0-RC1

Minimized code

extension (s: String)
  def :*:[T <: Tuple](that: T) : String *: T = ???

Output

2 |  def :*:[T <: Tuple](that: T) : String *: T = ???
  |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |  right-associative extension method must start with a single parameter

Expectation

no error

@bishabosha bishabosha added itype:bug area:desugar Desugaring happens after parsing but before typing, see desugar.scala labels Mar 3, 2021
bishabosha added a commit to dotty-staging/dotty that referenced this issue Mar 3, 2021
odersky added a commit that referenced this issue Mar 3, 2021
fix #11583: skip typarams of right assoc ext meth
rjolly added a commit to rjolly/dotty that referenced this issue Mar 5, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 5, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 5, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 5, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 5, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 5, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 8, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 8, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 8, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 8, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 8, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 8, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 8, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 9, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 13, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 13, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 13, 2021
rjolly added a commit to rjolly/dotty that referenced this issue Mar 13, 2021
michelou pushed a commit to michelou/scala3 that referenced this issue Mar 15, 2021
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:desugar Desugaring happens after parsing but before typing, see desugar.scala itype:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants