JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc

This commit is contained in:
Alexey Andreev
2016-11-25 12:36:47 +03:00
parent e0cb56b3c3
commit 68412ae94f
173 changed files with 486 additions and 651 deletions
@@ -4,21 +4,21 @@
@file:JsModule("native-lib")
package foo
@native class A(@native val x: Int = noImpl) {
@native fun foo(y: Int): Int = noImpl
external class A(val x: Int = noImpl) {
fun foo(y: Int): Int = noImpl
}
@native object B {
@native val x: Int = noImpl
external object B {
val x: Int = noImpl
@native fun foo(y: Int): Int = noImpl
fun foo(y: Int): Int = noImpl
}
@native fun foo(y: Int): Int = noImpl
external fun foo(y: Int): Int = noImpl
@native val bar: Int = noImpl
external val bar: Int = noImpl
@native var mbar: Int = noImpl
external var mbar: Int = noImpl
// MODULE: main(lib)
// FILE: main.kt