diff options
author | Martin Odersky <odersky@gmail.com> | 2009-11-22 18:13:34 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-11-22 18:13:34 +0000 |
commit | 9aae43ad9f3f015811d3de8e05dfb521001c244e (patch) | |
tree | f7ed6887f8c51ea93f5ee3888612be570a0c766a /test/pending | |
parent | 42123a6366d3877070b2f40160337fc6ffd4a27e (diff) | |
download | scala-9aae43ad9f3f015811d3de8e05dfb521001c244e.tar.gz scala-9aae43ad9f3f015811d3de8e05dfb521001c244e.tar.bz2 scala-9aae43ad9f3f015811d3de8e05dfb521001c244e.zip |
Moved failing test due to fix of #2635 to pending.
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/pos/bug1357.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pending/pos/bug1357.scala b/test/pending/pos/bug1357.scala new file mode 100644 index 0000000000..fcdecb3ad3 --- /dev/null +++ b/test/pending/pos/bug1357.scala @@ -0,0 +1,21 @@ +object NonEmptyCons { + def unapply[H, T](c: (H, T)): Option[(H, T)] = Some(c) +} + + +object Main { + + type BT[+H, +T <: Tuple2[Tuple2[H, T], Tuple2[H, T]]] = Tuple2[H, T] + + // type T = Tuple2[String,String] + type BinaryTree[+E] = BT[E, T forSome { type T <: Tuple2[BT[E, T], BT[E, T]] }] + + def foo[E](tree: BinaryTree[E]): Unit = tree match { + case NonEmptyCons(_, tail) => { + tail match { + case NonEmptyCons(_, _) => { + } + } + } + } +}
\ No newline at end of file |