summaryrefslogtreecommitdiff
path: root/test/files/neg/bug415.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug415.scala')
-rw-r--r--test/files/neg/bug415.scala21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/files/neg/bug415.scala b/test/files/neg/bug415.scala
new file mode 100644
index 0000000000..ea7f89f39a
--- /dev/null
+++ b/test/files/neg/bug415.scala
@@ -0,0 +1,21 @@
+class Foo[T]
+
+abstract class A {
+ type T <: Foo[T]
+ def x: T;
+}
+
+abstract class B {
+ def a: A;
+ val y = a.x;
+}
+
+abstract class A2 {
+ type T <: String
+ def x: Array[T]
+}
+
+abstract class B2 {
+ def a: A2;
+ val y: Array[String] = a.x;
+}