From b094defe6162232d8be29ae0eb44ab6742c11f9b Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 15 Sep 2010 23:13:53 +0000 Subject: 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. --- test/files/neg/checksensibleUnit.check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/files/neg/checksensibleUnit.check') diff --git a/test/files/neg/checksensibleUnit.check b/test/files/neg/checksensibleUnit.check index 1de1aa8031..7fed4e558a 100644 --- a/test/files/neg/checksensibleUnit.check +++ b/test/files/neg/checksensibleUnit.check @@ -1,7 +1,7 @@ checksensibleUnit.scala:3: error: value > is not a member of Unit println((c = 1) > 0) - ^ + ^ checksensibleUnit.scala:4: error: value <= is not a member of Unit println((c = 1) <= 0) - ^ + ^ two errors found -- cgit v1.2.3