JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc
This commit is contained in:
@@ -6,7 +6,7 @@ class A(val x: Int) {
|
||||
constructor(a: Int, b: Int) : this(a + b)
|
||||
}
|
||||
|
||||
@native class B(x: Int) {
|
||||
external class B(x: Int) {
|
||||
constructor(a: Int, b: Int) : this(0) {}
|
||||
|
||||
val x: Int
|
||||
|
||||
@@ -5,7 +5,7 @@ package lib
|
||||
|
||||
fun foo() = 23
|
||||
|
||||
@native fun bar(): Int = noImpl
|
||||
external fun bar(): Int = noImpl
|
||||
|
||||
inline fun baz() = 99
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ val foo = 23
|
||||
val boo: Int
|
||||
get() = 42
|
||||
|
||||
@native val bar: Int = noImpl
|
||||
external val bar: Int = noImpl
|
||||
|
||||
@native val far: Int
|
||||
external val far: Int
|
||||
get() = noImpl
|
||||
|
||||
// TODO: annotations like this are not serialized properly. Uncomment after KT-14529 gets fixed
|
||||
@@ -20,7 +20,8 @@ val fuzz: Int
|
||||
|
||||
inline fun fetchFoo() = foo
|
||||
|
||||
@JsName("fee") val tee = 2525
|
||||
@JsName("fee")
|
||||
val tee = 2525
|
||||
|
||||
// FILE: lib.js
|
||||
|
||||
|
||||
Reference in New Issue
Block a user