summaryrefslogtreecommitdiff
path: root/test/files/neg/t8890.scala
diff options
context:
space:
mode:
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