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
It's a little hard to find the best wording for this, but it looks like trying to access external val s from within a closure passed into a macro materializer breaks on Scala 2.12.
It's a little hard to find the best wording for this, but it looks like trying to access external
val
s from within a closure passed into a macro materializer breaks on Scala 2.12.Using the following macro:
The following will compile on Scala 2.11 but not 2.12:
The compiler seem to have problems dealing with
someValue
If the macro doesn't wrap the generator with
it compiles just fine. If an external method is used from within the closure, it also compiles just fine.
I've created a Github repo that can be cloned and run, to quickly reproduce this issue:
https://github.com/bfil/scala-compiler-bug
The original issue originated when trying to upgrade the following project to Scala 2.12:
https://github.com/bfil/scala-automapper
The text was updated successfully, but these errors were encountered: