Deprecate escaped modifiers and unescaped annotations
This commit is contained in:
Vendored
+6
-6
@@ -3,23 +3,23 @@
|
||||
fun foo() {
|
||||
@native
|
||||
class A {
|
||||
nativeInvoke
|
||||
@nativeInvoke
|
||||
fun foo() {}
|
||||
|
||||
nativeInvoke
|
||||
@nativeInvoke
|
||||
fun invoke(a: String): Int = 0
|
||||
|
||||
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>nativeInvoke
|
||||
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>@nativeInvoke
|
||||
fun Int.ext()<!> = 1
|
||||
|
||||
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>nativeInvoke
|
||||
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>@nativeInvoke
|
||||
fun Int.invoke(a: String, b: Int)<!> = "OK"
|
||||
|
||||
val anonymous = object {
|
||||
nativeInvoke
|
||||
@nativeInvoke
|
||||
fun foo() {}
|
||||
|
||||
nativeInvoke
|
||||
@nativeInvoke
|
||||
fun invoke(a: String): Int = 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user