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

Overloaded method with higher kinded type shadows value type on 2.13 #11487

lJoublanc opened this issue Apr 15, 2019 · 1 comment


None yet
2 participants
Copy link

commented Apr 15, 2019

@milessabin @mpilquist has kindly provided this minimized example:

scala> object Foo {
     |   def apply[A]: Int = 0
     |   def apply[F[_]](implicit x: Int): Boolean = true
     | }
defined object Foo

scala> Foo[Int]
       error: Int takes no type parameters, expected: one

The whole discussion is here ☝️ April 15, 2019 12:17 PM.

Confirmed on both 2.13-M5 and RC1.

This doesn't occur if the methods have a different number of type parameters.


This comment has been minimized.

Copy link

commented Apr 15, 2019

This also happens on 2.12, it seems, so not a 2.13 regression:

@hrhino hrhino added this to the Backlog milestone Apr 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.