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
Under certain circumstances, queriying knownDirectSubclasses from a sealed trait from within a macro yields an empty list. It seems to be related to compilation order. Perhaps related to #7567, #7046.
[info] Compiling3Scala sources to /Users/hhrutz/Documents/devel/play-json-sealed/test/target/scala-2.10/classes...
[error] exception during macro expansion:
[error] java.lang.IllegalArgumentException: requirement failed: Did not find sub classes fortypetraitSelectionSize
[error] at scala.Predef$.require(Predef.scala:233)
[error] at foo.Checker$.applyImpl(Checker.scala:13)
[error] exception during macro expansion:
[error] java.lang.IllegalArgumentException: requirement failed: Did not find sub classes fortypetraitSelection
[error] at scala.Predef$.require(Predef.scala:233)
[error] at foo.Checker$.applyImpl(Checker.scala:13)
[error] two errors found
[error] (test/compile:compile) Compilation failed
Expected behaviour: Should find the respective sub classes.
The text was updated successfully, but these errors were encountered:
Under certain circumstances, queriying
knownDirectSubclasses
from a sealed trait from within a macro yields an empty list. It seems to be related to compilation order. Perhaps related to #7567, #7046.Minimised test case, to reproduce:
git clone -b knownDirectSubclasses git@github.com:Sciss/play-json-sealed.git
cd play-json-sealed
sbt clean compile
Observed behaviour: Compilation fails with
Expected behaviour: Should find the respective sub classes.
The text was updated successfully, but these errors were encountered: