From c24400f13e594dffc2a3e68e161c8f36979bfd30 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 2 Dec 2012 21:26:17 +0100 Subject: SI-6558 Expand test case for annotation typos --- test/files/neg/t6558.check | 14 ++++++++++---- 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 + ) } -- cgit v1.2.3