Skip to content

Commit af5f9b0

Browse files
committed
Fix nightly build after eta-expansion changes
The nightly build runs the sbt incremental compilation tests (that can be run by hand using sbt "sbt-dotty/scripted source-dependencies/*" but take a while to complete). The implicit-params test started failing after #2701 because B.scala contains: val y = x(3) which was supposed to fail when the implicit is not present but now succeeds with `y` getting the type `E => String`. We restore the failure by adding a type annotation to `y`
1 parent d1f7968 commit af5f9b0

File tree

1 file changed

+2
-2
lines changed
  • sbt-dotty/sbt-test/source-dependencies/implicit-params

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
object B extends A
22
{
3-
val y = x(3)
4-
}
3+
val y: String = x(3)
4+
}

0 commit comments

Comments
 (0)