Skip to content

Commit ce21145

Browse files
committed
bugfix: Fix issues with tests
1 parent 79f047a commit ce21145

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

tests/neg/indentRight.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)