diff options
Diffstat (limited to 'tests/untried/pos/arrays3.scala')
-rw-r--r-- | tests/untried/pos/arrays3.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/arrays3.scala b/tests/untried/pos/arrays3.scala new file mode 100644 index 000000000..f96be0b42 --- /dev/null +++ b/tests/untried/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 +} |