Closed m-gris closed 1 month ago
When using Scala CLI (version 1.5.1) with Scala 3.5.1, scala.util.Properties.versionString reports Scala version 2.13.14, despite the REPL running Scala 3.5.1 features correctly.
scala.util.Properties.versionString
scala-cli repl -S 3.5.1
Test a Scala 3-specific feature:
enum Color: case Red, Green, Blue Color.Red
scala.util.Properties.versionString should report version 3.5.1, matching the actual Scala version in use.
cs clean
This is a FAQ. https://docs.scala-lang.org/tutorials/FAQ/index.html#i-want-scala-3-why-does-versionnumberstring-say-im-on-213
Noted. Thx.
Environment
Issue Description
When using Scala CLI (version 1.5.1) with Scala 3.5.1,
scala.util.Properties.versionString
reports Scala version 2.13.14, despite the REPL running Scala 3.5.1 features correctly.Steps to Reproduce
Test a Scala 3-specific feature:
Actual Behavior
scala.util.Properties.versionString
returns "version 2.13.14"Expected Behavior
scala.util.Properties.versionString
should report version 3.5.1, matching the actual Scala version in use.Additional Information
cs clean
) and updating Scala CLI