aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-26 13:17:25 +0200
committerMartin Odersky <odersky@gmail.com>2015-05-26 21:29:16 +0200
commit0c4ca21dafd067af3d2953356b57ffb2f30093c3 (patch)
tree3a7bbaf7f9ef9cb4343acdfaf101301fc0859731 /tests/disabled
parentb2634a85acbaad6125a675009db8dd73837e1f58 (diff)
downloaddotty-0c4ca21dafd067af3d2953356b57ffb2f30093c3.tar.gz
dotty-0c4ca21dafd067af3d2953356b57ffb2f30093c3.tar.bz2
dotty-0c4ca21dafd067af3d2953356b57ffb2f30093c3.zip
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.
Diffstat (limited to 'tests/disabled')
-rwxr-xr-xtests/disabled/t2503.scala19
-rw-r--r--tests/disabled/t5577.scala27
2 files changed, 46 insertions, 0 deletions
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]
+}
+
diff --git a/tests/disabled/t5577.scala b/tests/disabled/t5577.scala
new file mode 100644
index 000000000..d54a37e45
--- /dev/null
+++ b/tests/disabled/t5577.scala
@@ -0,0 +1,27 @@
+
+
+
+import collection._
+
+
+
+object Test {
+
+ class AlarmingBuffer[T] extends mutable.ArrayBuffer[T] {
+ override def sizeHint(x: Int): Unit = {
+ println("Received a size hint: " + x)
+ super.sizeHint(x)
+ }
+ }
+
+ def main(args: Array[String]): Unit = {
+ val iteratorBuilder = (new AlarmingBuffer[Int]) mapResult {
+ res => res.iterator
+ }
+
+ iteratorBuilder.sizeHint(10)
+ iteratorBuilder ++= (0 until 10)
+ iteratorBuilder.result.foreach(println)
+ }
+
+}