summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorSimon Schaefer <mail@antoras.de>2013-11-23 23:45:59 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-11-26 18:57:47 +0100
commitb915f440eb3738d2991b1f96b7c810cc87b88d0c (patch)
tree9934ec7d3e2596e64f71fd16c30c48dcf83b1c39 /test/files/neg
parent2ad9666ce8863814dd5d27f1d43739e89c8c286b (diff)
downloadscala-b915f440eb3738d2991b1f96b7c810cc87b88d0c.tar.gz
scala-b915f440eb3738d2991b1f96b7c810cc87b88d0c.tar.bz2
scala-b915f440eb3738d2991b1f96b7c810cc87b88d0c.zip
SI-7463,SI-8003 Correct wrong position for {select,apply}Dynamic calls
The new positions are range positions that directly refer to the beginning and the end of the method calls in the sources instead of simply point to the beginning of the expression. This allows the scala-ide to semantically highlight select- and applyDynamic method calls, because it has only to traverse the tree and apply the color ranges to the given position ranges. This also fixes the position marker of an error messages related to a wrong Dynamic method signature.
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/applydynamic_sip.check8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/neg/applydynamic_sip.check b/test/files/neg/applydynamic_sip.check
index dcf97b29fc..b50858356d 100644
--- a/test/files/neg/applydynamic_sip.check
+++ b/test/files/neg/applydynamic_sip.check
@@ -13,28 +13,28 @@ applydynamic_sip.scala:18: error: type mismatch;
error after rewriting to Test.this.bad1.selectDynamic("sel")
possible cause: maybe a wrong Dynamic method signature?
bad1.sel
- ^
+ ^
applydynamic_sip.scala:19: error: type mismatch;
found : String("sel")
required: Int
error after rewriting to Test.this.bad1.applyDynamic("sel")
possible cause: maybe a wrong Dynamic method signature?
bad1.sel(1)
- ^
+ ^
applydynamic_sip.scala:20: error: type mismatch;
found : String("sel")
required: Int
error after rewriting to Test.this.bad1.applyDynamicNamed("sel")
possible cause: maybe a wrong Dynamic method signature?
bad1.sel(a = 1)
- ^
+ ^
applydynamic_sip.scala:21: error: type mismatch;
found : String("sel")
required: Int
error after rewriting to Test.this.bad1.updateDynamic("sel")
possible cause: maybe a wrong Dynamic method signature?
bad1.sel = 1
- ^
+ ^
applydynamic_sip.scala:29: error: Int does not take parameters
error after rewriting to Test.this.bad2.selectDynamic("sel")
possible cause: maybe a wrong Dynamic method signature?