val a: List[String] = Nil val b: List[Int] = Nil a == Nil // 1 a eq Nil // 2 b == Nil // 3 b eq Nil // 4 a == b // 5 a eq b // 6
case object Nil extends List[Nothing]
Login in to like
Login in to comment
or Read more about Scala Quizzes
Login in to like
Login in to comment