Add kotlin.external annotation and deprecate kotlin.jvm.native
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import kotlin.jvm.*
|
||||
|
||||
interface Tr {
|
||||
<!NATIVE_DECLARATION_IN_TRAIT!>native fun foo()<!>
|
||||
<!NATIVE_DECLARATION_IN_TRAIT, NATIVE_DECLARATION_CANNOT_HAVE_BODY!>native fun bar()<!> {}
|
||||
<!EXTERNAL_DECLARATION_IN_TRAIT!>external fun foo()<!>
|
||||
<!EXTERNAL_DECLARATION_IN_TRAIT, EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external fun bar()<!> {}
|
||||
|
||||
companion object {
|
||||
native fun foo()
|
||||
<!NATIVE_DECLARATION_CANNOT_HAVE_BODY!>native fun bar()<!> {}
|
||||
external fun foo()
|
||||
<!EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external fun bar()<!> {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user