Permalink
Browse files

Test case closes SI-3798.

  • Loading branch information...
paulp committed May 8, 2012
1 parent 843ac95 commit e982596149800f14a8a122f1f1a3540b95af7411
Showing with 11 additions and 0 deletions.
  1. +1 −0 test/files/run/t3798.check
  2. +10 −0 test/files/run/t3798.scala
@@ -0,0 +1 @@
true
View
@@ -0,0 +1,10 @@
object Test {
def main(args: Array[String]) {
val seq: MySeq[Undefined] = new MySeq[Floats](new Array[Float](10))
println(10 == seq.array.length)
}
}
sealed trait Undefined { type ArrayType <: Array[_] }
sealed trait Floats extends Undefined { type ArrayType = Array[Float] }
class MySeq[+T <: Undefined](val array: T#ArrayType)

0 comments on commit e982596

Please sign in to comment.