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
-- [E006] NotFoundError:FooMacros.scala:2:262|deffoo:String= macro Foo.fooImpl[T]
|^^^|Notfound: Foo
longer explanation available when compiling with`-explain`-- [E006] NotFoundError:FooMacros.scala:2:382|deffoo:String= macro Foo.fooImpl[T]
|^|Notfound: typeT
Expectation
This is what you get in Scala 2 at typer
FooMacros.scala:2: error: macro definition needs to be enabled
by making the implicit value scala.language.experimental.macros visible.
This can be achieved by adding the import clause 'import scala.language.experimental.macros'
or by setting the compiler option -language:experimental.macros.
See the Scaladoc for value scala.language.experimental.macros for a discussion
why the feature needs to be explicitly enabled.
def foo: String = macro Foo.fooImpl[T]
^
1 error
The text was updated successfully, but these errors were encountered:
Minimized code
Output
Expectation
This is what you get in Scala 2 at typer
The text was updated successfully, but these errors were encountered: