summaryrefslogtreecommitdiff
path: root/test/files/neg/t6263.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-21 07:40:28 +0200
committerPaul Phillips <paulp@improving.org>2012-09-01 10:34:06 -0700
commit35316be5a89b2c9622e92594245aaf72a3820c88 (patch)
treec23ef6bdf01f643ce98204c0e3d10420d1a86058 /test/files/neg/t6263.check
parent6cda8a6f972d014f9b73c54a43bb80f99b64adb4 (diff)
downloadscala-35316be5a89b2c9622e92594245aaf72a3820c88.tar.gz
scala-35316be5a89b2c9622e92594245aaf72a3820c88.tar.bz2
scala-35316be5a89b2c9622e92594245aaf72a3820c88.zip
Better errors for Any/AnyRef issues.
When an error occurs because some type does not conform to AnyRef (and an AnyRef-derived type would have sufficed) try to say something useful about the situation. This commit also initializes scope members before printing error messages because the + version seems more useful than the - version (taken from one of the checkfile diffs.) - def <init>: <?> - def methodIntIntInt: <?> + def <init>(): X + def methodIntIntInt(x: scala.Int,y: scala.Int): scala.Int
Diffstat (limited to 'test/files/neg/t6263.check')
-rw-r--r--test/files/neg/t6263.check3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/neg/t6263.check b/test/files/neg/t6263.check
index 1c5834e1ca..9e9c7c615b 100644
--- a/test/files/neg/t6263.check
+++ b/test/files/neg/t6263.check
@@ -1,6 +1,9 @@
t6263.scala:5: error: type mismatch;
found : A.this.c.type (with underlying type C)
required: AnyRef
+Note that C extends Any, not AnyRef.
+Such types can participate in value classes, but instances
+cannot appear in singleton types or in reference comparisons.
type t = c.type
^
one error found