summaryrefslogblamecommitdiff
path: root/test/files/run/t4025.scala
blob: 5db0093970b917c62c53678ccc871587a6cb3ec5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                             
import scala.tools.nsc.Settings
import scala.tools.partest.ReplTest

object Test extends ReplTest {
  def code = """
class Color(val red: Int)

case class Red(r:Int) extends Color(r)

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