Skip to content

Commit 56c939b

Browse files
committed
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.
1 parent 8c82987 commit 56c939b

File tree

1 file changed

+2
-1
lines changed
  • sbt-dotty/sbt-test/source-dependencies/synthetic-companion

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
object B {
2-
A(0)
2+
val f: Int => A = A
3+
f(0)
34
}

0 commit comments

Comments
 (0)