We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
3.0.1
import scala.quoted._ object Macro: inline def apply[A]: Unit = ${impl[A]} private def impl[A: Type](using Quotes): Expr[String] = import quotes.reflect._ val t = TypeRepr.of[A] println(t.classSymbol.get.fullName) Expr("")
object Foo: object Boo object Main: def main(args: Array[String]) = Macro[Foo.Boo.type]
Foo$.Boo$
Correct runtime name for Foo.Boo:
Foo$Boo$
The text was updated successfully, but these errors were encountered:
I don't see how the expectation is justified. Here's the docs for fullName:
fullName
https://github.com/lampepfl/dotty/blob/3be078dfd06d0438cfaea44632947b7ec3b676ac/library/src/scala/quoted/Quotes.scala#L3485-L3486
Which gives no guarantees in regards to the runtime names.
Sorry, something went wrong.
No branches or pull requests
Compiler version
3.0.1
Minimized code
Output
Expectation
Correct runtime name for Foo.Boo:
The text was updated successfully, but these errors were encountered: