-
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
Macro pickling causes unresolved symbols due to type parameter dependency on parameter #15475
Labels
Comments
andrzejressel
added
itype:bug
itype:crash
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Jun 19, 2022
nicolasstucki
added
area:metaprogramming:quotes
Issues related to quotes and splices
stat:needs minimization
Needs a self contained minimization
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Jun 19, 2022
I think further minimizing would be nice, but in principle the existing test case should be workable. |
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jun 19, 2022
This test case first broke when level checking was disabled. I verified that it compiles OK when Config.checkLevels is set to true.
odersky
added a commit
that referenced
this issue
Jun 20, 2022
I managed to minimize it into a single file: //> using scala "3.1.3-RC5"
def test =
transform {
val a: Seq[Generic[?]] = ???
a.foreach { to =>
to.mthd()
}
}
transparent inline def transform[T](expr: T): T = ??? // if we add inline to param, it doesn't crash
trait Generic[+T] { // both covariance and contravariance cause a crash (invariance doesn't)
def mthd(): Generic[T] = ??? // has to have a parameter list to crash
} |
Additionally the crash in the snippet above doesn't occur if one of the following is true:
|
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Feb 9, 2023
Merged
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Feb 13, 2023
Kordyjan
added a commit
that referenced
this issue
Feb 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Compiler version
3.1.3-RC5
Minimized code
Output (click arrow to expand)
Discussion in dotty-cps-async about this bug: dotty-cps-async/dotty-cps-async#58 (comment)
Regression starts here: 2317859
Example project: https://github.com/andrzejressel/scala-3-unresolved-symbols
The text was updated successfully, but these errors were encountered: