File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/config Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ object ScalaSettings:
3737 ScalaRelease .values.toList.map(_.show)
3838
3939 def supportedSourceVersions : List [String ] =
40- SourceVersion .values.toList.map(_.toString)
40+ SourceVersion .values.diff(SourceVersion .illegalInSettings)
41+ .map(_.toString).toList
4142
4243 def defaultClasspath : String = sys.env.getOrElse(" CLASSPATH" , " ." )
4344
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ object Test {
2424 }
2525
2626 trait A
27- case class B () extends A // error: Line is indented too far to the right
28- case object C extends A // error: Line is indented too far to the right
27+ case class B () extends A
28+ case object C extends A
2929
3030 if (true ) // OK
3131 println(" hi" )
You can’t perform that action at this time.
0 commit comments