JS: replace noImpl with definedExternally in tests
This commit is contained in:
Vendored
+18
-18
@@ -2,48 +2,48 @@
|
||||
|
||||
external class A {
|
||||
@nativeSetter
|
||||
fun set(a: String, v: Any?): Any? = noImpl
|
||||
fun set(a: String, v: Any?): Any? = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun put(a: Number, v: String) { noImpl }
|
||||
fun put(a: Number, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun foo(a: Int, v: String) { noImpl }
|
||||
fun foo(a: Int, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun set4(a: Double, v: String): Any = noImpl
|
||||
fun set4(a: Double, v: String): Any = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun set5(a: Double, v: String): CharSequence = noImpl
|
||||
fun set5(a: Double, v: String): CharSequence = definedExternally
|
||||
|
||||
companion object {
|
||||
@nativeSetter
|
||||
fun set(a: String, v: Any?): Any? = noImpl
|
||||
fun set(a: String, v: Any?): Any? = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun put(a: Number, v: String) { noImpl }
|
||||
fun put(a: Number, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun foo(a: Int, v: String) { noImpl }
|
||||
fun foo(a: Int, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun set4(a: Double, v: String): Any = noImpl
|
||||
fun set4(a: Double, v: String): Any = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun set5(a: Double, v: String): CharSequence = noImpl
|
||||
fun set5(a: Double, v: String): CharSequence = definedExternally
|
||||
}
|
||||
}
|
||||
|
||||
external class B {
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
object Obj1 {}
|
||||
|
||||
companion object {
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
object Obj2 {}
|
||||
@@ -52,20 +52,20 @@ external class B {
|
||||
|
||||
external class C {
|
||||
@nativeSetter
|
||||
fun set6(a: Double, v: String): <!NATIVE_SETTER_WRONG_RETURN_TYPE!>Number<!> = noImpl
|
||||
fun set6(a: Double, v: String): <!NATIVE_SETTER_WRONG_RETURN_TYPE!>Number<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(): Any?<!> = noImpl
|
||||
fun set(): Any?<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any?<!> = noImpl
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any?<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(a: String, v: Any, v2: Any)<!> { noImpl }
|
||||
fun set(a: String, v: Any, v2: Any)<!> { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>, v: Any?) { noImpl }
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>, v: Any?) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun foo(a: Number, <!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>v: String = noImpl<!>): String = noImpl
|
||||
fun foo(a: Number, <!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>v: String = definedExternally<!>): String = definedExternally
|
||||
}
|
||||
+23
-23
@@ -4,48 +4,48 @@ external class A {
|
||||
class B {
|
||||
class A {
|
||||
@nativeSetter
|
||||
fun set(a: String, v: Any?): Any? = noImpl
|
||||
fun set(a: String, v: Any?): Any? = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun put(a: Number, v: String) { noImpl }
|
||||
fun put(a: Number, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun foo(a: Int, v: String) { noImpl }
|
||||
fun foo(a: Int, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun set4(a: Double, v: String): Any = noImpl
|
||||
fun set4(a: Double, v: String): Any = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun set5(a: Double, v: String): CharSequence = noImpl
|
||||
fun set5(a: Double, v: String): CharSequence = definedExternally
|
||||
|
||||
companion object {
|
||||
@nativeSetter
|
||||
fun set(a: String, v: Any?): Any? = noImpl
|
||||
fun set(a: String, v: Any?): Any? = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun put(a: Number, v: String) { noImpl }
|
||||
fun put(a: Number, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun foo(a: Int, v: String) { noImpl }
|
||||
fun foo(a: Int, v: String) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun set4(a: Double, v: String): Any = noImpl
|
||||
fun set4(a: Double, v: String): Any = definedExternally
|
||||
|
||||
@nativeSetter
|
||||
fun set5(a: Double, v: String): CharSequence = noImpl
|
||||
fun set5(a: Double, v: String): CharSequence = definedExternally
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
object Obj1 {}
|
||||
|
||||
companion object {
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
val foo: Int = noImpl
|
||||
val foo: Int = definedExternally
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET!>@nativeSetter<!>
|
||||
object Obj2 {}
|
||||
@@ -54,39 +54,39 @@ external class A {
|
||||
|
||||
class C {
|
||||
@nativeSetter
|
||||
fun set6(a: Double, v: String): <!NATIVE_SETTER_WRONG_RETURN_TYPE!>Number<!> = noImpl
|
||||
fun set6(a: Double, v: String): <!NATIVE_SETTER_WRONG_RETURN_TYPE!>Number<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(): Any?<!> = noImpl
|
||||
fun set(): Any?<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any?<!> = noImpl
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any?<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(a: String, v: Any, v2: Any)<!> { noImpl }
|
||||
fun set(a: String, v: Any, v2: Any)<!> { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>, v: Any?) { noImpl }
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>, v: Any?) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun foo(<!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>a: Double = noImpl<!>, <!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>v: String = noImpl<!>): String = noImpl
|
||||
fun foo(<!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>a: Double = definedExternally<!>, <!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>v: String = definedExternally<!>): String = definedExternally
|
||||
}
|
||||
|
||||
object obj {
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(): Any?<!> = noImpl
|
||||
fun set(): Any?<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any?<!> = noImpl
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>): Any?<!> = definedExternally
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeSetter
|
||||
fun set(a: String, v: Any, v2: Any)<!> { noImpl }
|
||||
fun set(a: String, v: Any, v2: Any)<!> { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>, v: Any?) { noImpl }
|
||||
fun set(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: A<!>, v: Any?) { definedExternally }
|
||||
|
||||
@nativeSetter
|
||||
fun foo(a: Int, <!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>v: String = noImpl<!>): String = noImpl
|
||||
fun foo(a: Int, <!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>v: String = definedExternally<!>): String = definedExternally
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user