From 56c939ba65f727cc15e5ee81d216e92df1d16451 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 17 Oct 2017 17:04:14 +0200 Subject: [PATCH 1/2] Fix the synthetic-companion scripted test As documented in `./test`, compilation should fail because `object A` is no longer a subclass of `Int => A`, but `B.scala` did not actually check that previously, so compilation always succeeded. --- .../sbt-test/source-dependencies/synthetic-companion/B.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbt-dotty/sbt-test/source-dependencies/synthetic-companion/B.scala b/sbt-dotty/sbt-test/source-dependencies/synthetic-companion/B.scala index be302fe40883..10dc652bfc3d 100644 --- a/sbt-dotty/sbt-test/source-dependencies/synthetic-companion/B.scala +++ b/sbt-dotty/sbt-test/source-dependencies/synthetic-companion/B.scala @@ -1,3 +1,4 @@ object B { - A(0) + val f: Int => A = A + f(0) } From dbb2b6ca06ca25d4f590ebf5e241ee8dcf0b79a6 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 17 Oct 2017 17:04:48 +0200 Subject: [PATCH 2/2] Remove stray dbg.sbt --- .../sbt-test/source-dependencies/synthetic-companion/dbg.sbt | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 sbt-dotty/sbt-test/source-dependencies/synthetic-companion/dbg.sbt diff --git a/sbt-dotty/sbt-test/source-dependencies/synthetic-companion/dbg.sbt b/sbt-dotty/sbt-test/source-dependencies/synthetic-companion/dbg.sbt deleted file mode 100644 index 1ac0e14e948c..000000000000 --- a/sbt-dotty/sbt-test/source-dependencies/synthetic-companion/dbg.sbt +++ /dev/null @@ -1,2 +0,0 @@ -logLevel := Level.Debug -incOptions ~= { _.copy(apiDebug = true, relationsDebug = true) }