aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t7436.scala
blob: 9627e38f5490846722a5939714186e9c14ee599b (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                                      
class A(val p: Int*)

class B(val p1: Int) extends A(p1)

object Test {
  def main(args: Array[String]): Unit = {
    new B(1).p1 // threw java.lang.ClassCastException: scala.collection.mutable.WrappedArray$ofInt cannot be cast to java.lang.Integer
  }
}