summaryrefslogtreecommitdiff
path: root/test/files/neg/t3692.scala
Commit message (Collapse)AuthorAgeFilesLines
* Pattern matching on Array types, working for re...Paul Phillips2010-10-041-0/+2
| | | | | | | | | | | | | | | | | Pattern matching on Array types, working for reals. def f[T](a: Array[T]) = a match { case x: Array[Int] => x(0) case x: Array[Double] => 2 // etc. } I'd also like to thank "instantiateTypeVar" for displacing the mechanical spiders and giant squid beings which used to fill my nightmares. Now that I know true horror, I welcome the squid. Closes #2755, review by odersky.
* closes #3692: make instantiateTypeVar more care...Adriaan Moors2010-09-141-0/+17
closes #3692: make instantiateTypeVar more careful so it does not change T's info to >: T <: T. review by odersky