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
@@ -1,7 +1,6 @@
package foo
@native
interface A {
external interface A {
val bar: Int get() = noImpl
fun foo(): String = noImpl
}
@@ -2,8 +2,7 @@
package foo
@native
class A {
external class A {
open class B {
fun foo(): String
}
@@ -2,13 +2,11 @@
package foo
@native
open class A {
external open class A {
fun foo(): String
}
@native
open class B : A() {
external open class B : A() {
fun bar(): String
}
@@ -1,7 +1,6 @@
package foo
@native
fun String.charCodeAt(i: Int): Int = noImpl
external fun String.charCodeAt(i: Int): Int = noImpl
// Because String in JS doesn't have hashCode method
fun String.myHashCode(): Int {