-
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
null
used as prefix of type application during implicit search
#18695
Comments
With the improved error message in #18700 we get the following failure
The macro is attempting to create the AST |
Minimizedtrait Foo { type Num <: Int }
given derived[A](using foo: Foo): Any = derivedImpl(foo)
def derivedImpl(foo: Foo)(using bar: foo.Num =:= Int): Any = ??? |
null
used as prefix of type application during implicit search
The null comes from |
We have. #18719 |
…singleton types This is an alternative fix for scala#18695, which already got fixed in a different way by scala#18719. This PR adds the actual tests, and leaves in the fix as a defensive measure in case the situation arises by some other means than the one foxed in scala#18719.
Encountered this when I got the priorization of implicits slightly wrong. Swapping
fromTuple
andtupleFromMirrorAndLength
makes it work fine in this case. Not actually sure what the bug is here. This is as small as I could minimize itCompiler version
3.3.1
If you're not sure what version you're using, run
print scalaVersion
from sbt(if you're running scalac manually, use
scalac -version
instead).Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: