-
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
Labels
Comments
Katrix
added
itype:bug
itype:crash
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Oct 13, 2023
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 = ??? |
nicolasstucki
added
area:implicits
related to implicits
area:typer
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Oct 16, 2023
nicolasstucki
changed the title
Crash when calling macro producing constant type in inline function
Oct 16, 2023
null
used as prefix of type application during implicit search
The null comes from |
We have. #18719 |
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 25, 2023
…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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: