summaryrefslogblamecommitdiff
path: root/test/files/run/t1718.scala
blob: 358bd1be5a5ac9d7a5ca0ab96bd0c2e8c62ea6b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                        
                                                                           




                                     
                                  

 
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)) 
}