JS: replace noImpl with definedExternally in tests
This commit is contained in:
Vendored
+13
-13
@@ -2,36 +2,36 @@
|
||||
|
||||
external class A {
|
||||
@nativeGetter
|
||||
fun get(a: String): Any? = noImpl
|
||||
fun get(a: String): Any? = definedExternally
|
||||
|
||||
@nativeGetter
|
||||
fun take(a: Number): String? = noImpl
|
||||
fun take(a: Number): String? = definedExternally
|
||||
|
||||
@nativeGetter
|
||||
fun foo(a: Double): String? = noImpl
|
||||
fun foo(a: Double): String? = definedExternally
|
||||
|
||||
companion object {
|
||||
@nativeGetter
|
||||
fun get(a: String): Any? = noImpl
|
||||
fun get(a: String): Any? = definedExternally
|
||||
|
||||
@nativeGetter
|
||||
fun take(a: Number): String? = noImpl
|
||||
fun take(a: Number): String? = definedExternally
|
||||
|
||||
@nativeGetter
|
||||
fun foo(a: Double): String? = noImpl
|
||||
fun foo(a: Double): String? = definedExternally
|
||||
}
|
||||
}
|
||||
|
||||
external class B {
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeGetter<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeGetter<!>
|
||||
object Obj1 {}
|
||||
|
||||
companion object {
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeGetter<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeGetter<!>
|
||||
object Obj2 {}
|
||||
@@ -40,18 +40,18 @@ external class B {
|
||||
|
||||
external class C {
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeGetter
|
||||
fun get(): Any?<!> = noImpl
|
||||
fun get(): Any?<!> = definedExternally
|
||||
|
||||
@nativeGetter
|
||||
fun get(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any? = noImpl
|
||||
fun get(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any? = definedExternally
|
||||
|
||||
@nativeGetter
|
||||
fun <!NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE!>foo<!>(a: Int) { noImpl }
|
||||
fun <!NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE!>foo<!>(a: Int) { definedExternally }
|
||||
|
||||
@nativeGetter
|
||||
fun bar(a: String): <!NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE!>Int<!> = noImpl
|
||||
fun bar(a: String): <!NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE!>Int<!> = definedExternally
|
||||
|
||||
@nativeGetter
|
||||
fun baz(<!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>a: String = noImpl<!>): Int? = noImpl
|
||||
fun baz(<!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>a: String = definedExternally<!>): Int? = definedExternally
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user