diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-27 06:45:36 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-27 06:45:36 -0700 |
commit | 83337eea13d373a4c38c4c1a763d540a62d31729 (patch) | |
tree | 8238dfd9ce38cbb6cab46c7254400a4aafb57633 /test/files/pos | |
parent | 76f3885ac875f03738092157bba5a640698b156a (diff) | |
parent | b7888cc356094138fa79e45bf101be4a893bfd50 (diff) | |
download | scala-83337eea13d373a4c38c4c1a763d540a62d31729.tar.gz scala-83337eea13d373a4c38c4c1a763d540a62d31729.tar.bz2 scala-83337eea13d373a4c38c4c1a763d540a62d31729.zip |
Merge pull request #780 from hubertp/topic/fix-rangepos-build
Fix range positions when applying anonymous classes.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/rangepos-anonapply.flags | 1 | ||||
-rw-r--r-- | test/files/pos/rangepos-anonapply.scala | 9 |
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) + } +} |