diff options
Diffstat (limited to 'tests/disabled/t2503.scala')
-rwxr-xr-x | tests/disabled/t2503.scala | 19 |
1 files changed, 19 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] +} + |