summaryrefslogtreecommitdiff
path: root/test/files/neg/t900.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t900.check')
-rw-r--r--test/files/neg/t900.check7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/files/neg/t900.check b/test/files/neg/t900.check
index 4611ceba8c..6fe26a31ac 100644
--- a/test/files/neg/t900.check
+++ b/test/files/neg/t900.check
@@ -1,10 +1,9 @@
t900.scala:4: error: type mismatch;
found : Foo.this.x.type (with underlying type Foo.this.bar)
required: AnyRef
-Note that implicit conversions are not applicable because they are ambiguous:
- both method any2stringfmt in object Predef of type (x: Any)scala.runtime.StringFormat
- and method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd
- are possible conversion functions from Foo.this.x.type to AnyRef
+Note that bar is unbounded, which means AnyRef is not a known parent.
+Such types can participate in value classes, but instances
+cannot appear in singleton types or in reference comparisons.
def break(): x.type
^
one error found