Permalink
Browse files

SI-6558 Expand test case for annotation typos

  • Loading branch information...
1 parent d9928d5 commit c24400f13e594dffc2a3e68e161c8f36979bfd30 @retronym retronym committed Dec 2, 2012
Showing with 26 additions and 5 deletions.
  1. +10 −4 test/files/neg/t6558.check
  2. +16 −1 test/files/neg/t6558.scala
View
@@ -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
View
@@ -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
+ )
}

0 comments on commit c24400f

Please sign in to comment.