summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-12-02 21:26:17 +0100
committerJason Zaugg <jzaugg@gmail.com>2012-12-02 21:26:48 +0100
commitc24400f13e594dffc2a3e68e161c8f36979bfd30 (patch)
tree9303f35cd02a7526e6948b192539fde70c8d28df /test/files/neg
parentd9928d59f9b21265f783fe781ad1d3a4ff93bb6e (diff)
downloadscala-c24400f13e594dffc2a3e68e161c8f36979bfd30.tar.gz
scala-c24400f13e594dffc2a3e68e161c8f36979bfd30.tar.bz2
scala-c24400f13e594dffc2a3e68e161c8f36979bfd30.zip
SI-6558 Expand test case for annotation typos
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t6558.check14
-rw-r--r--test/files/neg/t6558.scala17
2 files changed, 26 insertions, 5 deletions
diff --git a/test/files/neg/t6558.check b/test/files/neg/t6558.check
index bd118edec8..ea627b49ea 100644
--- a/test/files/neg/t6558.check
+++ b/test/files/neg/t6558.check
@@ -1,4 +1,10 @@
-t6558.scala:5: error: not found: type sth
- @sth
- ^
-one error found
+t6558.scala:16: error: not found: type classs
+ @classs
+ ^
+t6558.scala:19: error: not found: type typeparam
+ class D[@typeparam T]
+ ^
+t6558.scala:22: error: not found: type valueparam
+ @valueparam x: Any
+ ^
+three errors found
diff --git a/test/files/neg/t6558.scala b/test/files/neg/t6558.scala
index 92c788f21e..cedd587c84 100644
--- a/test/files/neg/t6558.scala
+++ b/test/files/neg/t6558.scala
@@ -2,8 +2,23 @@ class AnnotNotFound {
def foo(a: Any) = ()
foo {
- @sth
+ @inargument
def foo = 0
foo
}
+
+ () => {
+ @infunction
+ def foo = 0
+ ()
+ }
+
+ @classs
+ class C
+
+ class D[@typeparam T]
+
+ class E(
+ @valueparam x: Any
+ )
}