From 0c4ca21dafd067af3d2953356b57ffb2f30093c3 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 26 May 2015 13:17:25 +0200 Subject: Disabled two failing tests Both tests fail with the same error: "Cannot create object because protected[this] newBuilder is not implemented". Not clear why partests claim to succeed here. --- tests/disabled/t2503.scala | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tests/disabled/t2503.scala (limited to 'tests/disabled/t2503.scala') diff --git a/tests/disabled/t2503.scala b/tests/disabled/t2503.scala new file mode 100755 index 000000000..d0983f2ca --- /dev/null +++ b/tests/disabled/t2503.scala @@ -0,0 +1,19 @@ +import scala.collection.mutable._ + +trait SB[A] extends Buffer[A] { + + import collection.Traversable + + abstract override def insertAll(n: Int, iter: Traversable[A]): Unit = synchronized { + super.insertAll(n, iter) + } + + abstract override def update(n: Int, newelem: A): Unit = synchronized { + super.update(n, newelem) + } +} + +object Test extends dotty.runtime.LegacyApp { + new ArrayBuffer[Int] with SB[Int] +} + -- cgit v1.2.3