Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pattern matching on Array types, working for re... | Paul Phillips | 2010-10-04 | 1 | -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 Moors | 2010-09-14 | 1 | -0/+17 |
closes #3692: make instantiateTypeVar more careful so it does not change T's info to >: T <: T. review by odersky |