You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, bundles defined in REPL currently can't be found by scala.reflect.macros.compiler.Resolvers, because when one writes "def foo = macro Bundle.impl", the MacroHandler.referencedNames set doesn't contain TypeName("Bundle"), hence Imports.importsCode fails to import Bundle when compiling the macro def.
However even if this issue is fixed, e.g. by defining "override lazy val referencedNames = ImportVarsTraverser(member).flatMap(name => List(name.toTermName, name.toTypeName))" in MacroHandler, we still got a problem with the fact that macro bundles can only be defined as top-level classes or traits.
The text was updated successfully, but these errors were encountered:
First of all, bundles defined in REPL currently can't be found by scala.reflect.macros.compiler.Resolvers, because when one writes "def foo = macro Bundle.impl", the MacroHandler.referencedNames set doesn't contain TypeName("Bundle"), hence Imports.importsCode fails to import Bundle when compiling the macro def.
However even if this issue is fixed, e.g. by defining "override lazy val referencedNames = ImportVarsTraverser(member).flatMap(name => List(name.toTermName, name.toTypeName))" in MacroHandler, we still got a problem with the fact that macro bundles can only be defined as top-level classes or traits.
The text was updated successfully, but these errors were encountered: