JS: replace noImpl with definedExternally in tests
This commit is contained in:
Vendored
+6
-6
@@ -2,26 +2,26 @@
|
||||
|
||||
external class A {
|
||||
@nativeInvoke
|
||||
fun foo() {noImpl}
|
||||
fun foo() {definedExternally}
|
||||
|
||||
@nativeInvoke
|
||||
fun invoke(a: String): Int = noImpl
|
||||
fun invoke(a: String): Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
||||
object Obj1 {}
|
||||
|
||||
companion object {
|
||||
@nativeInvoke
|
||||
fun foo() { noImpl }
|
||||
fun foo() { definedExternally }
|
||||
|
||||
@nativeInvoke
|
||||
fun invoke(a: String): Int = noImpl
|
||||
fun invoke(a: String): Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
||||
object Obj2 {}
|
||||
|
||||
+6
-6
@@ -4,26 +4,26 @@ external class A {
|
||||
class B {
|
||||
class C {
|
||||
@nativeInvoke
|
||||
fun foo() { noImpl }
|
||||
fun foo() { definedExternally }
|
||||
|
||||
@nativeInvoke
|
||||
fun invoke(a: String): Int = noImpl
|
||||
fun invoke(a: String): Int = definedExternally
|
||||
}
|
||||
|
||||
object obj {
|
||||
@nativeInvoke
|
||||
fun foo() { noImpl }
|
||||
fun foo() { definedExternally }
|
||||
|
||||
@nativeInvoke
|
||||
fun invoke(a: String): Int = noImpl
|
||||
fun invoke(a: String): Int = definedExternally
|
||||
}
|
||||
|
||||
companion object {
|
||||
@nativeInvoke
|
||||
fun foo() { noImpl }
|
||||
fun foo() { definedExternally }
|
||||
|
||||
@nativeInvoke
|
||||
fun invoke(a: String): Int = noImpl
|
||||
fun invoke(a: String): Int = definedExternally
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user