summaryrefslogtreecommitdiff
path: root/test/files/pos/arrays3.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-11 07:52:27 -0700
committerPaul Phillips <paulp@improving.org>2012-05-23 08:43:10 -0700
commit402b5e4a1341ef4549b7e0979f9c5afc06f47315 (patch)
tree0ec0f5dbd51874d9ed9d4676451d553474eb8fd1 /test/files/pos/arrays3.scala
parent0d7952f90fc11f4dc055a2658b16b7183f1d6683 (diff)
downloadscala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.tar.gz
scala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.tar.bz2
scala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.zip
Pending and passing tests.
Move now-passing SI-963 test into neg. Test for partial specialization. Pending test for SI-5008. Pending test for SI-4649. Abstract array type test.
Diffstat (limited to 'test/files/pos/arrays3.scala')
-rw-r--r--test/files/pos/arrays3.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/arrays3.scala b/test/files/pos/arrays3.scala
new file mode 100644
index 0000000000..f96be0b427
--- /dev/null
+++ b/test/files/pos/arrays3.scala
@@ -0,0 +1,11 @@
+trait Foo {
+ type Repr <: String
+ def f2(x: Repr) = x.length
+}
+trait Fooz[Repr <: Array[_]] {
+ def f0(x: Repr) = x.length
+}
+
+trait Bar[Repr <: List[_]] extends Foo with Fooz[Array[Int]] {
+ def f1(x: Repr) = x.length
+}