blob: 358bd1be5a5ac9d7a5ca0ab96bd0c2e8c62ea6b3 (
plain) (
tree)
|
|
object Test extends App{
def matchesNull[T](mightBeNull: Array[T]): Boolean = mightBeNull match {
case null => true
case x => false
}
val nullArray: Array[String] = null
println(matchesNull(nullArray))
}
|