Report warning (1.2) or error (1.3) on local annotations

#KT-23277 Fixed
 #KT-23589 Fixed
This commit is contained in:
Alexander Udalov
2018-04-04 12:49:50 +02:00
parent c141fac94a
commit 89af94be95
10 changed files with 87 additions and 4 deletions
@@ -0,0 +1,9 @@
// !LANGUAGE: +ProhibitLocalAnnotations
fun f() {
<!LOCAL_ANNOTATION_CLASS_ERROR!>annotation class Anno<!>
@Anno class Local {
<!LOCAL_ANNOTATION_CLASS_ERROR!>annotation <!NESTED_CLASS_NOT_ALLOWED!>class Nested<!><!>
}
}