summaryrefslogtreecommitdiff
path: root/test/files/neg/bug900.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug900.check')
-rw-r--r--test/files/neg/bug900.check10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/bug900.check b/test/files/neg/bug900.check
new file mode 100644
index 0000000000..531ac5bee4
--- /dev/null
+++ b/test/files/neg/bug900.check
@@ -0,0 +1,10 @@
+bug900.scala:4: error: type mismatch;
+ found : Foo.this.x.type (with underlying type Foo.this.bar)
+ required: java.lang.Object
+Note that implicit conversions are not applicable because they are ambiguous:
+ both method any2stringadd in object Predef of type (scala.Any)scala.runtime.StringAdd
+ and method any2ArrowAssoc in object Predef of type [a](a)scala.Predef.ArrowAssoc[a]
+ are possible conversion functions from Foo.this.x.type to java.lang.Object
+ def break(): x.type
+ ^
+one error found