diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-12-02 21:26:17 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-12-02 21:26:48 +0100 |
commit | c24400f13e594dffc2a3e68e161c8f36979bfd30 (patch) | |
tree | 9303f35cd02a7526e6948b192539fde70c8d28df /test/files | |
parent | d9928d59f9b21265f783fe781ad1d3a4ff93bb6e (diff) | |
download | scala-c24400f13e594dffc2a3e68e161c8f36979bfd30.tar.gz scala-c24400f13e594dffc2a3e68e161c8f36979bfd30.tar.bz2 scala-c24400f13e594dffc2a3e68e161c8f36979bfd30.zip |
SI-6558 Expand test case for annotation typos
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t6558.check | 14 | ||||
-rw-r--r-- | test/files/neg/t6558.scala | 17 |
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 + ) } |