1 2 3 4 5 6 7
// Fails Ycheck class A { object Ding class B { (null: Any) match { case _: Ding.type => () } } }