blob: 9627e38f5490846722a5939714186e9c14ee599b (
plain) (
tree)
|
|
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
}
}
|