Targeting / retention for a set of standard annotations, some inapplicable annotation checks replaced with target check, some fixed tests
This commit is contained in:
Vendored
+4
-4
@@ -4,9 +4,9 @@ fun foo() {
|
||||
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>@nativeInvoke
|
||||
fun toplevelFun()<!> {}
|
||||
|
||||
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>@nativeInvoke
|
||||
val toplevelVal<!> = 0
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
||||
val toplevelVal = 0
|
||||
|
||||
@nativeInvoke
|
||||
class <!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>Foo<!> {}
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
||||
class Foo {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user