summaryrefslogtreecommitdiff
path: root/test/files/neg/t5452.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-13 23:09:39 -0800
committerPaul Phillips <paulp@improving.org>2012-02-13 23:19:57 -0800
commit2b731911e97a281e324060099631e2374b2144ec (patch)
treeb8cba303e6855f879f6cce0704c208ec162fd140 /test/files/neg/t5452.check
parenteb8556ca663de9bf77514eab6e63f0a2f7599413 (diff)
downloadscala-2b731911e97a281e324060099631e2374b2144ec.tar.gz
scala-2b731911e97a281e324060099631e2374b2144ec.tar.bz2
scala-2b731911e97a281e324060099631e2374b2144ec.zip
Fix for SI-5452.
Why is calling the error function not enough to register the error, why does "setError(tree)" have to be called as well? That was the cause of this particular stackoverflow. In ContextErrors I see lots of methods which call setError and lots more which do not, and frankly it's all pretty terrifying. There is zero documentation attached to setError. Maybe there's an explanation somewhere I'm not seeing. Review by @hubertp.
Diffstat (limited to 'test/files/neg/t5452.check')
-rw-r--r--test/files/neg/t5452.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t5452.check b/test/files/neg/t5452.check
new file mode 100644
index 0000000000..baf544499b
--- /dev/null
+++ b/test/files/neg/t5452.check
@@ -0,0 +1,6 @@
+t5452.scala:28: error: overloaded method value apply with alternatives:
+
+ cannot be applied to (Queryable[CoffeesTable])
+ Queryable[CoffeesTable]( q.treeFilter(null) )
+ ^
+one error found