Closed
Description
Before 3.5 passing -language:higherKinds
was simply ignored without any mesage, now, it's yielding a compilation error. This conflicts with handling of other unknown scalac options, which emit warnings.
The new behaviour is problematic when project use utilities to set common scalacOptions
like https://github.com/typelevel/sbt-tpolecat - it requires to modify the upstream project and release it or to introduce a special exclusion rules in the build.
Compiler version
Last good release: 3.5.0-RC1-bin-20240512-99c4c00-NIGHTLY
First bad release: 3.5.0-RC1-bin-20240514-7c9aae3-NIGHTLY
Bisect points to: f6345c6
Minimized code
//> using options -language:higherKinds
@main def Test = ()
Output
[error] invalid choice(s) for -language: higherKinds
[info] scalac -help gives more information
Expectation
Unknown variant of option should yield warning instead of error.