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
compile src-2/MacroImpl.scala with scala 2.13.2 then compile src-3/Macros.scala with the previous output on classpath
src-2/MacroImpl.scala
src-3/Macros.scala
// src-2/MacroImpl.scala class MacroImpl(val c: scala.reflect.macros.blackbox.Context) { import c.universe._ def poly[T: c.WeakTypeTag]: Tree = q"${c.weakTypeOf[T].toString}" }
// src-3/Macros.scala import scala.language.experimental.macros object Macros { object Bundles { def poly[T]: String = macro (new MacroImpl(null)).poly[T] inline def poly[T]: String = ${ Macros3.polyImpl[T] } } object Macros3 { def polyImpl[T: Type](using QuoteContext) = Expr(summon[Type[T]].show) } }
Tasty for the macro definition
def poly[T]: String = macro (new MacroImpl(null)).poly[T]
has the following signature for selecting the poly method from MacroImpl:
poly
MacroImpl
poly[Signed Signature(List(1, scala.Nothing),scala.reflect.api.Trees.TreeApi)]
I believe it should be:
poly[Signed Signature(List(1, scala.reflect.api.TypeTags.WeakTypeTag),scala.reflect.api.Trees.TreeApi)]
The text was updated successfully, but these errors were encountered:
After investigation, there is nothing here in particular to do with macros, see #8991
Sorry, something went wrong.
nicolasstucki
No branches or pull requests
Minimized code
compile
src-2/MacroImpl.scala
with scala 2.13.2 then compilesrc-3/Macros.scala
with the previous output on classpathOutput
Tasty for the macro definition
has the following signature for selecting the
poly
method fromMacroImpl
:I believe it should be:
Expectation
The text was updated successfully, but these errors were encountered: