diff options
Diffstat (limited to 'test/pending/run/bug441.scala')
-rw-r--r-- | test/pending/run/bug441.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pending/run/bug441.scala b/test/pending/run/bug441.scala new file mode 100644 index 0000000000..d90e872baa --- /dev/null +++ b/test/pending/run/bug441.scala @@ -0,0 +1,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() +} |