summaryrefslogtreecommitdiff
path: root/test/files/run/t4658.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-09-02 10:27:47 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-09-02 10:27:47 +1000
commit32da6dce10586f9ac54877ba776447b353293851 (patch)
treeda95275a6f3078c231f3772e5c647c63c9f636c6 /test/files/run/t4658.check
parent2ca3f8b7a0e526ee255dad60f79b0fb33bad5d39 (diff)
downloadscala-32da6dce10586f9ac54877ba776447b353293851.tar.gz
scala-32da6dce10586f9ac54877ba776447b353293851.tar.bz2
scala-32da6dce10586f9ac54877ba776447b353293851.zip
Try harder to avoid reporting unpositioned errors
Rather than issuing an error at NoPosition, which usually means an unpositioned tree is being typechecked, walk up the context chain for an enclosing positioned tree. I've tested this manually with ensime which was getting an unpositioned warning as a result of a unpositioned trees created by a macro in scalatest. ``` % ../scala-positioned-error/build/quick/bin/scalac @args.txt /Users/jason/code/ensime-server/core/src/it/scala/org/ensime/core/RichPresentationCompilerSpec.scala:216: warning: implicit numeric widening ) { (p, cc) => ^ ```
Diffstat (limited to 'test/files/run/t4658.check')
0 files changed, 0 insertions, 0 deletions