Skip to content

Commit 778146a

Browse files
authored
Fix flaky rewrites tests (#18165)
Fixes #18164 As Vulpix runs tests in parallel, sometimes cleanup wasn't finished before another compilation started leading to throwing exception https://github.com/lampepfl/dotty/actions/runs/5482337258/jobs/9987578194#step:4:2966 This was probably the cause
1 parent da80053 commit 778146a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class CompilationTests {
8080
aggregateTests(
8181
compileFile("tests/rewrites/rewrites.scala", scala2CompatMode.and("-rewrite", "-indent")),
8282
compileFile("tests/rewrites/rewrites3x.scala", defaultOptions.and("-rewrite", "-source", "future-migration")),
83-
compileFile("tests/rewrites/rewrites3x.scala", defaultOptions.and("-rewrite", "-source", "future-migration", "-Xfatal-warnings")),
83+
compileFile("tests/rewrites/rewrites3x-fatal-warnings.scala", defaultOptions.and("-rewrite", "-source", "future-migration", "-Xfatal-warnings")),
8484
compileFile("tests/rewrites/filtering-fors.scala", defaultOptions.and("-rewrite", "-source", "3.2-migration")),
8585
compileFile("tests/rewrites/refutable-pattern-bindings.scala", defaultOptions.and("-rewrite", "-source", "3.2-migration")),
8686
compileFile("tests/rewrites/i8982.scala", defaultOptions.and("-indent", "-rewrite")),
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import scala.{collection => coll, runtime=>_, _}
2+
import coll._
3+
4+
def f(xs: Int*) = xs.sum
5+
def test =
6+
f(List(1, 2, 3): _*)
7+
8+
def g = { implicit x: Int =>
9+
x + 1
10+
}

0 commit comments

Comments
 (0)