summaryrefslogtreecommitdiff
path: root/test/files/neg/annot-nonconst.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-27 01:58:46 +0000
committerPaul Phillips <paulp@improving.org>2010-10-27 01:58:46 +0000
commit0e3e701870e705a453df5f4e178af377eeb54aec (patch)
tree0ab1e63acd6eb4c1893e2a98223e154e41ccf730 /test/files/neg/annot-nonconst.check
parenta15e48df88fde5172526f68939530862f72f19ca (diff)
downloadscala-0e3e701870e705a453df5f4e178af377eeb54aec.tar.gz
scala-0e3e701870e705a453df5f4e178af377eeb54aec.tar.bz2
scala-0e3e701870e705a453df5f4e178af377eeb54aec.zip
Some uninteresting code related to error messag...
Some uninteresting code related to error messages, which I'm checking in mostly because I booted the r23379 commit in a git-svn meltdown and posterity demands the message, which was: You can now use the self-type of an anonymous class as a singleton type in a pattern match ON THE MOON. Actual test case excerpt: val x4 = new { self => def f(x: Any) = x match { case _: x1.type => 1 case _: x2.type => 2 case _: x3.type => 3 case _: self.type => 4 case x: Dingus.type => x.IamDingus } } Closes #576, no review.
Diffstat (limited to 'test/files/neg/annot-nonconst.check')
-rw-r--r--test/files/neg/annot-nonconst.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/annot-nonconst.check b/test/files/neg/annot-nonconst.check
index 23429bb11a..385f066baa 100644
--- a/test/files/neg/annot-nonconst.check
+++ b/test/files/neg/annot-nonconst.check
@@ -1,9 +1,9 @@
-annot-nonconst.scala:1: warning: implementation restriction: subclassing Classfile does not
+annot-nonconst.scala:1: warning: Implementation restriction: subclassing Classfile does not
make your annotation visible at runtime. If that is what
you want, you must write the annotation class in Java.
class Length(value: Int) extends ClassfileAnnotation
^
-annot-nonconst.scala:2: warning: implementation restriction: subclassing Classfile does not
+annot-nonconst.scala:2: warning: Implementation restriction: subclassing Classfile does not
make your annotation visible at runtime. If that is what
you want, you must write the annotation class in Java.
class Ann2(value: String) extends ClassfileAnnotation