blob: d1b19c38cd5ea0eae61faca2caa1dce5d3553ed2 (
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))
}
|