diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-04-02 11:24:27 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-04-02 11:59:02 +0200 |
commit | d1c7f8d451d29f6f5d7ccf665c35acbe96ed4680 (patch) | |
tree | d2de3478d169f1e96ce39aaa8ef3e13d9ccfc152 /test/benchmarking/ParCtrie-nums.scala | |
parent | 8489be16b57a08f51bf3655c99cede52477b3022 (diff) | |
download | scala-d1c7f8d451d29f6f5d7ccf665c35acbe96ed4680.tar.gz scala-d1c7f8d451d29f6f5d7ccf665c35acbe96ed4680.tar.bz2 scala-d1c7f8d451d29f6f5d7ccf665c35acbe96ed4680.zip |
SI-8463 Avoid unpositioned errors from search for views
Ideally, I'd like to fix this using `saveErrors = false` here to
firewall the enclosing context from the ambiguiouty error encountered
during implicit search.
I originally proposed that patch as a fix for SI-8419 in
https://github.com/scala/scala/pull/3460 but withdrew from
that approach as I uncovered a deeper bug that meant that
we actually shouldn't have even been looking for views in
that case.
But, this runs into SI-8230 and these failures:
test/partest --update-check \
/Users/jason/code/scala/test/files/pos/t2504.scala \
/Users/jason/code/scala/test/files/pos/t4457_1.scala \
/Users/jason/code/scala/test/files/neg/t4457_2.scala
Turns out that typechecking the ostensible straight forward
application, `Array("abc")`, hinges on us leaking an ambiguity
error from `viewExists` to find a path through overload resolution!
This commit takes a tiny step forward by using `context.tree`
rather than `EmptyTree` as the argument to `inferImplicit`.
This avoids unpositioned type errors.
Diffstat (limited to 'test/benchmarking/ParCtrie-nums.scala')
0 files changed, 0 insertions, 0 deletions