diff --git a/compiler/test/dotty/tools/dotc/CompilationTests.scala b/compiler/test/dotty/tools/dotc/CompilationTests.scala index e4166a0079c0..7a0efd26ac2f 100644 --- a/compiler/test/dotty/tools/dotc/CompilationTests.scala +++ b/compiler/test/dotty/tools/dotc/CompilationTests.scala @@ -80,7 +80,7 @@ class CompilationTests { aggregateTests( compileFile("tests/rewrites/rewrites.scala", scala2CompatMode.and("-rewrite", "-indent")), compileFile("tests/rewrites/rewrites3x.scala", defaultOptions.and("-rewrite", "-source", "future-migration")), - compileFile("tests/rewrites/rewrites3x.scala", defaultOptions.and("-rewrite", "-source", "future-migration", "-Xfatal-warnings")), + compileFile("tests/rewrites/rewrites3x-fatal-warnings.scala", defaultOptions.and("-rewrite", "-source", "future-migration", "-Xfatal-warnings")), compileFile("tests/rewrites/filtering-fors.scala", defaultOptions.and("-rewrite", "-source", "3.2-migration")), compileFile("tests/rewrites/refutable-pattern-bindings.scala", defaultOptions.and("-rewrite", "-source", "3.2-migration")), compileFile("tests/rewrites/i8982.scala", defaultOptions.and("-indent", "-rewrite")), diff --git a/tests/rewrites/rewrites3x-fatal-warnings.scala b/tests/rewrites/rewrites3x-fatal-warnings.scala new file mode 100644 index 000000000000..48e2d35b0fdd --- /dev/null +++ b/tests/rewrites/rewrites3x-fatal-warnings.scala @@ -0,0 +1,10 @@ +import scala.{collection => coll, runtime=>_, _} +import coll._ + +def f(xs: Int*) = xs.sum +def test = + f(List(1, 2, 3): _*) + +def g = { implicit x: Int => + x + 1 +} \ No newline at end of file