summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-11-09 11:27:15 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-11-09 11:27:15 +1000
commit6674cda3005e11355ec70e2ca262ef1eddb9afe6 (patch)
tree08846c60c46d94fb0aee5a34e083141fa35d5d20 /test/files
parentb431a4bd83d3bfb2b95d0426d2905b34ce1265ad (diff)
downloadscala-6674cda3005e11355ec70e2ca262ef1eddb9afe6.tar.gz
scala-6674cda3005e11355ec70e2ca262ef1eddb9afe6.tar.bz2
scala-6674cda3005e11355ec70e2ca262ef1eddb9afe6.zip
SI-5413 Test for fixed owner-corruption bug with names/defaults
Fixed in SI-8111 / 2.10.4.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t5413.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t5413.scala b/test/files/pos/t5413.scala
new file mode 100644
index 0000000000..47af514a14
--- /dev/null
+++ b/test/files/pos/t5413.scala
@@ -0,0 +1,9 @@
+object Fail {
+ def nom (guard : => Boolean) (something : => Unit) { }
+ def main(args: Array[String]) {
+ nom {
+ val i = 0
+ (i != 3)
+ }()
+ }
+}