diff options
Diffstat (limited to 'test/pending/run/t4971.scala')
-rw-r--r-- | test/pending/run/t4971.scala | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/pending/run/t4971.scala b/test/pending/run/t4971.scala deleted file mode 100644 index c9b6d6f39f..0000000000 --- a/test/pending/run/t4971.scala +++ /dev/null @@ -1,16 +0,0 @@ -trait A[@specialized(Int) K, @specialized(Double) V] { - def doStuff(k: K, v: V): Unit = sys.error("I am overridden, you cannot call me") -} - -trait B[@specialized(Double) V] extends A[Int, V] { - override def doStuff(k: Int, v: V): Unit = println("Hi - I'm calling doStuff in B") -} - -object Test { - def main(args: Array[String]): Unit = delegate(new B[Double]() {}, 1, 0.1) - - def delegate[@specialized(Int) K, @specialized(Double) V](a: A[K, V], k: K, v: V) { - a.doStuff(k, v) - } -} - |