From af5f9b0cd48124febc3bf967318dec2a4f82c27c Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sat, 24 Jun 2017 03:59:46 +0200 Subject: [PATCH] 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` --- .../sbt-test/source-dependencies/implicit-params/B.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbt-dotty/sbt-test/source-dependencies/implicit-params/B.scala b/sbt-dotty/sbt-test/source-dependencies/implicit-params/B.scala index 3273cdceb4db..ee0c0a5d0102 100644 --- a/sbt-dotty/sbt-test/source-dependencies/implicit-params/B.scala +++ b/sbt-dotty/sbt-test/source-dependencies/implicit-params/B.scala @@ -1,4 +1,4 @@ object B extends A { - val y = x(3) -} \ No newline at end of file + val y: String = x(3) +}