From ef13a9d40b2b62d73d8caabca576e1d2667ea83d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 23 Feb 2009 13:36:19 +0000 Subject: Fix and test case for #935; added test in RefCh... Fix and test case for #935; added test in RefChecks to confirm that parameterized annotations conform to type bounds. --- test/files/neg/bug935.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/neg/bug935.scala (limited to 'test/files/neg/bug935.scala') diff --git a/test/files/neg/bug935.scala b/test/files/neg/bug935.scala new file mode 100644 index 0000000000..4497e0812e --- /dev/null +++ b/test/files/neg/bug935.scala @@ -0,0 +1,6 @@ +object Test3 { + class E[T >: Nothing <: String](s: T) extends Annotation + class B + // val a = new E[B](new B) + @E[B](new B) val b = "hi" +} \ No newline at end of file -- cgit v1.2.3