diff options
author | Paul Phillips <paulp@improving.org> | 2010-09-15 23:13:53 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-09-15 23:13:53 +0000 |
commit | b094defe6162232d8be29ae0eb44ab6742c11f9b (patch) | |
tree | ff2432ecfb17c84c3bbc1eef116510c2a5b1df64 /test/files/neg/migration28.check | |
parent | f78d8f648e7c5d4bd0102a03be3e6c8479146e39 (diff) | |
download | scala-b094defe6162232d8be29ae0eb44ab6742c11f9b.tar.gz scala-b094defe6162232d8be29ae0eb44ab6742c11f9b.tar.bz2 scala-b094defe6162232d8be29ae0eb44ab6742c11f9b.zip |
positioning fix for infix expressions: report e...
positioning fix for infix expressions: report error at the operator
instead of at the receiver of a binop
In general use the operator position as the Select position's point
instead of the left or right expression. Position.union always uses the
receiver's point as point of the result, so swapping fixes that.
See http://www.scala-lang.org/node/6912 for the report.
Diffstat (limited to 'test/files/neg/migration28.check')
-rw-r--r-- | test/files/neg/migration28.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/migration28.check b/test/files/neg/migration28.check index 4c8c58e0fd..4324cc0d0a 100644 --- a/test/files/neg/migration28.check +++ b/test/files/neg/migration28.check @@ -1,8 +1,8 @@ migration28.scala:5: error: method ++= in class Stack is deprecated: use pushAll s ++= List(1,2,3) - ^ + ^ migration28.scala:7: error: method foreach in class Stack has changed semantics: Stack iterator and foreach now traverse in FIFO order. s foreach (_ => ()) - ^ + ^ two errors found |