diff --git a/compiler/test-resources/repl/erased b/compiler/test-resources/repl/erased index 9a67c1963769..fd9067692dbe 100644 --- a/compiler/test-resources/repl/erased +++ b/compiler/test-resources/repl/erased @@ -1,2 +1,3 @@ +scala> import scala.language.experimental.erasedDefinitions scala> def f(erased a: Int): Int = ??? def f(erased a: Int): Int diff --git a/compiler/test-resources/repl/erased-implicit b/compiler/test-resources/repl/erased-implicit index 5b1ec654c2aa..43624a5a9a08 100644 --- a/compiler/test-resources/repl/erased-implicit +++ b/compiler/test-resources/repl/erased-implicit @@ -1,2 +1,3 @@ +scala> import scala.language.experimental.erasedDefinitions scala> def f(using erased a: Int): Int = ??? def f(using erased a: Int): Int diff --git a/compiler/test-resources/type-printer/test-definitions b/compiler/test-resources/type-printer/test-definitions index ce33846472cf..cdda5f65cb0e 100644 --- a/compiler/test-resources/type-printer/test-definitions +++ b/compiler/test-resources/type-printer/test-definitions @@ -19,5 +19,7 @@ scala> trait E scala> implicit def x: Int = 1 def x: Int +scala> import scala.language.experimental.erasedDefinitions + scala> erased def y: Int = 1 def y: Int diff --git a/compiler/test/dotty/tools/repl/ReplTest.scala b/compiler/test/dotty/tools/repl/ReplTest.scala index 8fbf635c9a17..ae0d0c666a9c 100644 --- a/compiler/test/dotty/tools/repl/ReplTest.scala +++ b/compiler/test/dotty/tools/repl/ReplTest.scala @@ -104,6 +104,6 @@ extends ReplDriver(options, new PrintStream(out, true, StandardCharsets.UTF_8.na } object ReplTest: - val commonOptions = Array("-color:never", "-language:experimental.erasedDefinitions", "-pagewidth", "80") + val commonOptions = Array("-color:never", "-pagewidth", "80") val defaultOptions = commonOptions ++ Array("-classpath", TestConfiguration.basicClasspath) lazy val withStagingOptions = commonOptions ++ Array("-classpath", TestConfiguration.withStagingClasspath)