-
Notifications
You must be signed in to change notification settings - Fork 1.1k
assertion failed: unresolved symbols: parameter v when pickling #16355
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
Labels
Milestone
Comments
Minimized: import scala.quoted._
object macros {
inline transparent def mkNames: Unit = ${ mkNamesImpl }
def mkNamesImpl(using Quotes): Expr[Unit] = {
val v = "name"
Expr[(v.type, "aa")](v -> "aa")
'{()}
}
} |
thank you :) |
Minimized further import scala.quoted._
def mkNamesImpl(v: String)(using Quotes): Expr[Any] =
// Type.of[Option[v.type]] // error: access to parameter v from wrong staging level // this is OK
val _: Type[Option[v.type]] = Type.of // issue: access to parameter v from wrong staging level not found in inferred type
??? |
Minimal import scala.quoted._
def test(v: String)(using Quotes): Type[v.type] = Type.of |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 17, 2022
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 18, 2022
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 9, 2023
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 20, 2023
nicolasstucki
added a commit
that referenced
this issue
Jan 23, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Compiler version
3.2.1
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: