summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorMiguel Garcia <miguelalfredo.garcia@epfl.ch>2013-08-20 19:19:32 +0200
committerMiguel Garcia <miguelalfredo.garcia@epfl.ch>2013-12-15 18:27:08 +0100
commitc4e37d65213db205e41b95909612d16596444ca2 (patch)
tree8cdc5057c3048b1fe7c9197b33c3867134f19140 /test/files
parentf1ca1a38231586b8401be87454825bb2e509749e (diff)
downloadscala-c4e37d65213db205e41b95909612d16596444ca2.tar.gz
scala-c4e37d65213db205e41b95909612d16596444ca2.tar.bz2
scala-c4e37d65213db205e41b95909612d16596444ca2.zip
overzealous assert in GenBCode
The assert in question was aimed at ruling out gotos (ie "jumping-applys") in actual argument position of a jumping-apply. But the assert in question went overboard to also rule out a LabelDef in actual argument position. This commit removes the assert in question altogether. The unwanted behaviors, and only those, are rule out by the test added in this commit and the existing tests for SI-6089. See also https://issues.scala-lang.org/browse/SI-7749
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/overzealous-assert-genbcode.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/overzealous-assert-genbcode.scala b/test/files/pos/overzealous-assert-genbcode.scala
new file mode 100644
index 0000000000..ddd70b0c44
--- /dev/null
+++ b/test/files/pos/overzealous-assert-genbcode.scala
@@ -0,0 +1,10 @@
+object Test {
+
+ def main(args: Array[String]) {
+ args(0) match {
+ case a: String => while(a == null) {}
+ }
+ }
+
+}
+