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:
37
37
ScalaRelease .values.toList.map(_.show)
38
38
39
39
def supportedSourceVersions : List [String ] =
40
- SourceVersion .values.toList.map(_.toString)
40
+ SourceVersion .values.diff(SourceVersion .illegalInSettings)
41
+ .map(_.toString).toList
41
42
42
43
def defaultClasspath : String = sys.env.getOrElse(" CLASSPATH" , " ." )
43
44
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ object Test {
24
24
}
25
25
26
26
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
29
29
30
30
if (true ) // OK
31
31
println(" hi" )
You can’t perform that action at this time.
0 commit comments