summaryrefslogblamecommitdiff
path: root/test/files/run/t4025.check
blob: 2d4f644c5aae2568175bbd95720b8762d862b6e3 (plain) (tree)
1
2
3


                                           













                                                    
Type in expressions to have them evaluated.
Type :help for more information.

scala> class Color(val red: Int)
defined class Color

scala> 

scala> case class Red(r:Int) extends Color(r)
defined class Red

scala> 

scala> def f(c: Any) = c match { case Red(_) => () }
f: (c: Any)Unit

scala>