summaryrefslogtreecommitdiff
path: root/test/files/run/t4025.check
blob: 6715003cb6f525406a597c7722b3a0602e9ddf20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Type in expressions to have them evaluated.
Type :help for more information.

scala> 

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>