summaryrefslogtreecommitdiff
path: root/test/files/run/t2503.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t2503.scala')
-rwxr-xr-xtest/files/run/t2503.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/t2503.scala b/test/files/run/t2503.scala
new file mode 100755
index 0000000000..353a1dcac8
--- /dev/null
+++ b/test/files/run/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 Application {
+ new ArrayBuffer[Int] with SB[Int]
+}
+