summaryrefslogtreecommitdiff
path: root/test/files/neg/bug415.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-10-30 17:29:19 +0000
committerMartin Odersky <odersky@gmail.com>2006-10-30 17:29:19 +0000
commit7ebc41cda22ee26d4242e305782a14f7e6bf63aa (patch)
tree2ead03fe1fae2466677cdcddcbb5ac2e7c4778ed /test/files/neg/bug415.scala
parent640ecf38b7125ff0d2c926a9a634593640cd95b1 (diff)
downloadscala-7ebc41cda22ee26d4242e305782a14f7e6bf63aa.tar.gz
scala-7ebc41cda22ee26d4242e305782a14f7e6bf63aa.tar.bz2
scala-7ebc41cda22ee26d4242e305782a14f7e6bf63aa.zip
fixed bugs 54, 415
Improved avoidance of MalformedType's
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;
+}