-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Crash: class ...$CachedTypeRef
cannot be cast to class ...$MethodType
#18745
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
Minimizedobject Color:
def apply(i: Int): Int = i
type Plane
object Plane:
extension (plane: Plane)
def zipWith(that: String, f: Int => Int): Int = ???
def zipWith(that: Int, f: Int => Int): Int = ???
import Plane.zipWith
def test(p: Plane) =
p.zipWith("", (_: Int) => Color(25)) |
This fails Ychecking after typer
|
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 23, 2023
…ding resolution The SynthesizeExtMethodReceiver mode is supposed to be turned on only for the direct application of of a synthesized receiver to the qualifier of an extension method selection. previously its lifetime was accidentally extended when overloading resolution looking at subsequent parameter lists because the first one was not enough to disambiguate. Fixes scala#18745 Fixes scala#18744
WojciechMazur
pushed a commit
that referenced
this issue
Jun 22, 2024
…ding resolution The SynthesizeExtMethodReceiver mode is supposed to be turned on only for the direct application of of a synthesized receiver to the qualifier of an extension method selection. previously its lifetime was accidentally extended when overloading resolution looking at subsequent parameter lists because the first one was not enough to disambiguate. Fixes #18745 Fixes #18744 [Cherry-picked edc4bc8]
WojciechMazur
pushed a commit
that referenced
this issue
Jun 23, 2024
…ding resolution The SynthesizeExtMethodReceiver mode is supposed to be turned on only for the direct application of of a synthesized receiver to the qualifier of an extension method selection. previously its lifetime was accidentally extended when overloading resolution looking at subsequent parameter lists because the first one was not enough to disambiguate. Fixes #18745 Fixes #18744 [Cherry-picked edc4bc8]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
v3.3.1 (also tested on nightly)
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: