summaryrefslogtreecommitdiff
path: root/test/files/neg/t8890.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-10-07 17:35:47 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-10-09 09:49:53 +0200
commit4902c84cb049764dddc263976affa80bd6d44997 (patch)
treea62dcb9184afd81d20aa80251cdddd372157bc07 /test/files/neg/t8890.scala
parentc038732f1b302dd128b32512aab4cf0826752599 (diff)
downloadscala-4902c84cb049764dddc263976affa80bd6d44997.tar.gz
scala-4902c84cb049764dddc263976affa80bd6d44997.tar.bz2
scala-4902c84cb049764dddc263976affa80bd6d44997.zip
SI-8890 handle reference to overload with error
When buffering, we must report the ambiguity error to avoid a stack overflow. When the error refers to erroneous types/symbols, we don't report it directly to the user, because there will be an underlying error that's the root cause.
Diffstat (limited to 'test/files/neg/t8890.scala')
-rw-r--r--test/files/neg/t8890.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t8890.scala b/test/files/neg/t8890.scala
new file mode 100644
index 0000000000..cbdeb11d43
--- /dev/null
+++ b/test/files/neg/t8890.scala
@@ -0,0 +1,11 @@
+package foo
+
+class A {
+ /** The other */
+ def bar(x: Int): Unit = ???
+ def bar(x: Str): Unit = ???
+}
+
+class B {
+ (new A).bar(0)
+} \ No newline at end of file