From d9928d59f9b21265f783fe781ad1d3a4ff93bb6e Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Thu, 25 Oct 2012 18:52:39 +0200 Subject: Fixes SI-6558: typecheck lazy annotation info using non-silent context. Make context for typing lazy annotations always non-silent. If lazy annotation info was created in local (silent) context, error could go unnoticed because later they would still use silent typer for typing the annotation. --- test/files/neg/t6558.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/neg/t6558.scala (limited to 'test/files/neg/t6558.scala') diff --git a/test/files/neg/t6558.scala b/test/files/neg/t6558.scala new file mode 100644 index 0000000000..92c788f21e --- /dev/null +++ b/test/files/neg/t6558.scala @@ -0,0 +1,9 @@ +class AnnotNotFound { + def foo(a: Any) = () + + foo { + @sth + def foo = 0 + foo + } +} -- cgit v1.2.3