Skip to content

Commit

Permalink
Test case closes SI-3798.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulp committed May 8, 2012
1 parent 843ac95 commit e982596
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/files/run/t3798.check
@@ -0,0 +1 @@
true
10 changes: 10 additions & 0 deletions test/files/run/t3798.scala
@@ -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.