summaryrefslogtreecommitdiff
path: root/test/files/run/t7436.scala
blob: 867a931e05842547d60fb4267a5aa2dad87caced (plain) (blame)
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]) {
    new B(1).p1 // threw java.lang.ClassCastException: scala.collection.mutable.WrappedArray$ofInt cannot be cast to java.lang.Integer
  }
}