aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t7436.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t7436.scala')
-rw-r--r--tests/run/t7436.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/t7436.scala b/tests/run/t7436.scala
new file mode 100644
index 000000000..9627e38f5
--- /dev/null
+++ b/tests/run/t7436.scala
@@ -0,0 +1,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
+ }
+}