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
we should update the docs to say given is not supported i
I searched internet and did not find a single mention about this. Could someone provide some link where this behaviour is discussed or described? What is the reason for it?
the biggest discussion around everything is in issue 8571: #8700, #8571
from a historical point of view, 3.0-migration used to be called Scala2Compat, as seen in #8571, originally it was meant to be for compiling the same source file under either scala 2.13 or 3.0.0, however it wasn't perfect so now there is room for a hypothetical 2x3 mode for that.
However with all of -source:3.0-migration -old-syntax -no-indent the result is pretty close
Compiler version
Tested 3.0.2 and 3.1.3, both with option
-source:3.0-migration
, see https://scastie.scala-lang.org/04ztVOx5QuqycanJXlZQkgMinimized code
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
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:
There is nothing about Scala 3 features not being supported.
The text was updated successfully, but these errors were encountered: