diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t1159.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t1159.scala b/test/files/pos/t1159.scala new file mode 100644 index 0000000000..7e09418b28 --- /dev/null +++ b/test/files/pos/t1159.scala @@ -0,0 +1,13 @@ +object test17 { + def main(args : Array[String]) = { + val value = + if (false) + new java.lang.Float(0) + else if (false) + new java.lang.Long(0) + else + new java.lang.Integer(0) + + println(value) + } +} |