-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Assertion failed when not adding prefix to extension method in method body #11318
Comments
@Katrix as a rule when supplying minimized code to an issue please first try compiling it in separation from the codebase of your project so that missing definitions don't hide the actual error that we'll need to reproduce. trait ~>: [A[_], B[_]] |
Ahh yes, sorry about that. Guess I forgot about the arrow. Generally minimize code in Scastie, but that wasn't an option here as I used the nightly version. type FunctionK[A[_], B[_]] = [Z] => A[Z] => B[Z]
type ~>:[A[_], B[_]] = FunctionK[A, B] |
Minimised: extension(a: Int)
def b: Int = ???
def h: Unit =
[A] => (r: Int) => b |
Compiler version
3.0.0-M4-bin-20210204-406ff9d-NIGHTLY
Minimized code
Replacing
f(indexK(r))
withf(fa.indexK(r))
I honestly didn't expect it to work, but I more just expected a normal error message.
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: