class A { object Ding class B { (null: Any) match { case _: Ding.type => () } } }