summaryrefslogtreecommitdiff
path: root/test/files/neg/t9286a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t9286a.scala')
-rw-r--r--test/files/neg/t9286a.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t9286a.scala b/test/files/neg/t9286a.scala
new file mode 100644
index 0000000000..0375ac591f
--- /dev/null
+++ b/test/files/neg/t9286a.scala
@@ -0,0 +1,13 @@
+class T {
+ def foo(o: Tuple1[String]) = ()
+}
+
+class U extends T {
+ private def foo(o: Tuple1[Any]) = ()
+}
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ new U().foo(null) // IllegalAccessError: tried to access method U.foo(Lscala/Tuple1;)V from class Test$
+ }
+}