summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-06-26 18:24:51 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-06-26 18:24:51 +0200
commitb7888cc356094138fa79e45bf101be4a893bfd50 (patch)
tree0d4a5a83e0fa310b44fac562a24589d8a1fc6a1f /test/files
parent5a7bbfe035ecb64acd57fc66ea0d874ad02c31ff (diff)
downloadscala-b7888cc356094138fa79e45bf101be4a893bfd50.tar.gz
scala-b7888cc356094138fa79e45bf101be4a893bfd50.tar.bz2
scala-b7888cc356094138fa79e45bf101be4a893bfd50.zip
Fix range positions when applying anonymous classes. Review by @dragos or @odersky
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/rangepos-anonapply.flags1
-rw-r--r--test/files/pos/rangepos-anonapply.scala9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/rangepos-anonapply.flags b/test/files/pos/rangepos-anonapply.flags
new file mode 100644
index 0000000000..281f0a10cd
--- /dev/null
+++ b/test/files/pos/rangepos-anonapply.flags
@@ -0,0 +1 @@
+-Yrangepos
diff --git a/test/files/pos/rangepos-anonapply.scala b/test/files/pos/rangepos-anonapply.scala
new file mode 100644
index 0000000000..2f3e4ad6cd
--- /dev/null
+++ b/test/files/pos/rangepos-anonapply.scala
@@ -0,0 +1,9 @@
+class Test {
+ trait PropTraverser {
+ def apply(x: Int): Unit = {}
+ }
+
+ def gather(x: Int) {
+ (new PropTraverser {})(x)
+ }
+}