We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cff3be commit ca6b8f7Copy full SHA for ca6b8f7
compiler/src/dotty/tools/dotc/config/SourceVersion.scala
@@ -34,7 +34,7 @@ object SourceVersion extends Property.Key[SourceVersion]:
34
def defaultSourceVersion = `3.6`
35
36
/** language versions that may appear in a language import, are deprecated, but not removed from the standard library. */
37
- val illegalSourceVersionNames = List("3.1-migration").map(_.toTermName)
+ val illegalSourceVersionNames = List("3.1-migration", "never").map(_.toTermName)
38
39
/** language versions that the compiler recognises. */
40
val validSourceVersionNames = values.toList.map(_.toString.toTermName)
0 commit comments