summaryrefslogtreecommitdiff
path: root/test/files/run/bug441.scala
blob: d90e872baa278296698617d93350ebf9109a62fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object Test extends Application {

  def bug() = {
    val foo: Array[String] = Array("1","2","3");
    if( foo.length == null )    //  == 0 makes more sense, but still
      Console.println("plante"); // this code leads to runtime crash
    else
      Console.println("plante pas");
  }

  bug()
}