Report warning (1.2) or error (1.3) on local annotations
#KT-23277 Fixed #KT-23589 Fixed
This commit is contained in:
@@ -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<!><!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user