Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case class A()
- case class B()
- val b1 = B()
- val b2 = B()
- val sB = Seq[B](b1,b2)
- sB match {
- case _:Seq[A] => println("niet")
- case _:Seq[B] => println("da")
- case _ => println("?")
- }
- // result niet ...
Add Comment
Please, Sign In to add comment