Open
Description
Compiler version
Tested 3.0.2 and 3.1.3, both with option -source:3.0-migration
, see https://scastie.scala-lang.org/04ztVOx5QuqycanJXlZQkg
Minimized code
object EnumOf {
inline given [E](using ct: scala.reflect.ClassTag[E]): AnyRef = ???
}
Note: the code is extracted from https://github.com/theiterators/kebs/blob/master/macro-utils/src/main/scala-3/pl/iterators/kebs/macros/enums/EnumEntryMacros.scala
Output
inline
must be followed by anif
or amatch
Expectation
Valid Scala 3 code should still compile in migration mode, or if this is not intended, the documentation should be changed. The documentation says:
option makes the compiler forgiving on most of the dropped features
There is nothing about Scala 3 features not being supported.