JS: replace noImpl with definedExternally in tests

This commit is contained in:
Alexey Andreev
2017-01-23 15:55:21 +03:00
parent 71a5d8a4ee
commit aedf8bd232
69 changed files with 326 additions and 326 deletions
@@ -1,7 +1,7 @@
package foo
<!JS_MODULE_PROHIBITED_ON_VAR!>@JsModule("bar")
external var bar: Int<!> = noImpl
external var bar: Int<!> = definedExternally
<!JS_MODULE_PROHIBITED_ON_VAR!>@JsNonModule
external var baz: Int<!> = noImpl
external var baz: Int<!> = definedExternally
@@ -1,5 +1,5 @@
external class A {
<!EXTERNAL_ANONYMOUS_INITIALIZER!>init {
noImpl
definedExternally
}<!>
}
@@ -1,30 +1,30 @@
external fun foo(): Int = noImpl
external fun foo(): Int = definedExternally
external fun bar(): Unit {
noImpl
definedExternally
}
external fun baz(): Int = <!WRONG_BODY_OF_EXTERNAL_DECLARATION!>23<!>
external fun f(x: Int, y: String = noImpl): Unit
external fun f(x: Int, y: String = definedExternally): Unit
external fun g(x: Int, y: String = <!WRONG_DEFAULT_VALUE_FOR_EXTERNAL_FUN_PARAMETER!>""<!>): Unit
external var a: Int
get() = noImpl
get() = definedExternally
set(value) {
noImpl
definedExternally
}
external val b: Int
get() = <!WRONG_BODY_OF_EXTERNAL_DECLARATION!>23<!>
external val c: Int = noImpl
external val c: Int = definedExternally
external val d: Int = <!WRONG_INITIALIZER_OF_EXTERNAL_DECLARATION!>23<!>
external class C {
fun foo(): Int = noImpl
fun foo(): Int = definedExternally
fun bar(): Int = <!WRONG_BODY_OF_EXTERNAL_DECLARATION!>23<!>
}
@@ -1,10 +1,10 @@
class A
<!WRONG_EXTERNAL_DECLARATION!>external fun A.foo(): Unit<!> = noImpl
<!WRONG_EXTERNAL_DECLARATION!>external fun A.foo(): Unit<!> = definedExternally
<!WRONG_EXTERNAL_DECLARATION!>external var A.bar: String<!>
get() = noImpl
set(value) = noImpl
get() = definedExternally
set(value) = definedExternally
<!WRONG_EXTERNAL_DECLARATION!>external val A.baz: String<!>
get() = noImpl
get() = definedExternally
@@ -3,17 +3,17 @@
<!INLINE_EXTERNAL_DECLARATION!>inline external fun foo(): Unit<!>
inline external val bar: Int
<!INLINE_EXTERNAL_DECLARATION!>get()<!> = noImpl
<!INLINE_EXTERNAL_DECLARATION!>get()<!> = definedExternally
external val baz: Int
<!INLINE_EXTERNAL_DECLARATION!>inline get()<!> = noImpl
<!INLINE_EXTERNAL_DECLARATION!>inline get()<!> = definedExternally
external class A {
<!INLINE_EXTERNAL_DECLARATION!>inline fun foo(): Unit<!>
inline val bar: Int
<!INLINE_EXTERNAL_DECLARATION!>get()<!> = noImpl
<!INLINE_EXTERNAL_DECLARATION!>get()<!> = definedExternally
val baz: Int
<!INLINE_EXTERNAL_DECLARATION!>inline get()<!> = noImpl
<!INLINE_EXTERNAL_DECLARATION!>inline get()<!> = definedExternally
}
@@ -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
}
@@ -4,36 +4,36 @@ external class A {
class B {
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
}
}
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 {}
@@ -42,36 +42,36 @@ external class A {
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: Number = noImpl<!>): Int? = noImpl
fun baz(<!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>a: Number = definedExternally<!>): Int? = definedExternally
}
object obj {
<!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
}
}
}
@@ -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 {}
@@ -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
}
}
}
@@ -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
}
@@ -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
}
}
}
@@ -24,11 +24,11 @@ external class TopLevelNative {
class B
fun foo(): Int = noImpl
fun foo(): Int = definedExternally
<!NESTED_EXTERNAL_DECLARATION!>external fun bar(): Int<!>
val x: String = noImpl
val x: String = definedExternally
<!NESTED_EXTERNAL_DECLARATION!>external val y: String<!>
}
@@ -1,21 +1,21 @@
external interface I {
<!NON_ABSTRACT_MEMBER_OF_EXTERNAL_INTERFACE!>fun foo(): Unit<!> = noImpl
<!NON_ABSTRACT_MEMBER_OF_EXTERNAL_INTERFACE!>fun foo(): Unit<!> = definedExternally
val a: Int?
get() = noImpl
get() = definedExternally
var b: String?
get() = noImpl
set(value) = noImpl
get() = definedExternally
set(value) = definedExternally
<!NON_ABSTRACT_MEMBER_OF_EXTERNAL_INTERFACE!>val c: Int<!>
get() = noImpl
get() = definedExternally
<!NON_ABSTRACT_MEMBER_OF_EXTERNAL_INTERFACE!>var d: String<!>
get() = noImpl
set(value) = noImpl
get() = definedExternally
set(value) = definedExternally
var e: dynamic
get() = noImpl
set(value) = noImpl
get() = definedExternally
set(value) = definedExternally
}
@@ -2,10 +2,10 @@
// unreachable code suppressed due to KT-9586
external val baz: Int
external val boo: Int = noImpl
external val boo: Int = definedExternally
external fun foo()
external fun bar() { noImpl }
external fun bar() { definedExternally }
external interface T {
val baz: Int
@@ -15,35 +15,35 @@ external interface T {
companion object {
val baz: Int
val boo: Int = noImpl
val boo: Int = definedExternally
fun foo()
fun bar(): String = noImpl
fun bar(): String = definedExternally
}
}
external class C {
val baz: Int
val boo: Int = noImpl
val boo: Int = definedExternally
fun foo()
fun bar() { noImpl }
fun bar() { definedExternally }
companion object {
val baz: Int
val boo: Int = noImpl
val boo: Int = definedExternally
fun foo()
fun bar(): String = noImpl
fun bar(): String = definedExternally
}
}
external object O {
val baz: Int
val boo: Int = noImpl
val boo: Int = definedExternally
fun foo(s: String): String
fun bar(s: String): String = noImpl
fun bar(s: String): String = definedExternally
}
@@ -2,7 +2,7 @@
@nativeGetter
fun String.foo(n: Int): Int?
@nativeGetter
fun String.bar(n: Int): Int? = noImpl
fun String.bar(n: Int): Int? = definedExternally
external interface T {
@@ -2,12 +2,12 @@
@nativeInvoke
fun String.foo(): Int
@nativeInvoke
fun String.bar(): Int = noImpl
fun String.bar(): Int = definedExternally
external object O {
@nativeInvoke
fun foo()
@nativeInvoke
fun bar() { noImpl }
fun bar() { definedExternally }
}
@@ -9,5 +9,5 @@ external class C {
@nativeSetter
fun foo(d: Double, v: Any): Any
@nativeSetter
fun bar(d: Double, v: Any): Any = noImpl
fun bar(d: Double, v: Any): Any = definedExternally
}
@@ -1,5 +1,5 @@
open external class A {
open fun f(x: Int = noImpl)
open fun f(x: Int = definedExternally)
}
class B : A() {
@@ -12,7 +12,7 @@ external class C : A {
external interface I {
fun f(x: Int = noImpl)
fun f(x: Int = definedExternally)
}
interface J {
@@ -1,12 +1,12 @@
external fun foo(a: String): Int = noImpl
external fun foo(a: String): Int = definedExternally
external class Bar(b: Int, c: Char) {
fun baz(d: Int) { noImpl }
fun baz(d: Int) { definedExternally }
}
external object Obj {
fun test1(e: String) { noImpl }
fun test1(e: String) { definedExternally }
object Nested {
fun test2(g: Int) { noImpl }
fun test2(g: Int) { definedExternally }
}
}
@@ -1,18 +1,18 @@
// !DIAGNOSTICS: -DEPRECATION
@nativeGetter
fun Int.foo(a: String): Int? = noImpl
fun Int.foo(a: String): Int? = definedExternally
external class Bar(b: Int, c: Char) {
@nativeGetter
fun baz(d: Int): Any? = noImpl
fun baz(d: Int): Any? = definedExternally
}
external object Obj {
@nativeGetter
fun test1(e: String): String? = noImpl
fun test1(e: String): String? = definedExternally
object Nested {
@nativeGetter
fun test2(g: Int): Any? = noImpl
fun test2(g: Int): Any? = definedExternally
}
}
@@ -1,18 +1,18 @@
// !DIAGNOSTICS: -DEPRECATION
@nativeInvoke
fun Int.foo(a: String): Int = noImpl
fun Int.foo(a: String): Int = definedExternally
external class Bar(b: Int, c: Char) {
@nativeInvoke
fun baz(d: Int) { noImpl }
fun baz(d: Int) { definedExternally }
}
external object Obj {
@nativeInvoke
fun test1(e: String) { noImpl }
fun test1(e: String) { definedExternally }
object Nested {
@nativeInvoke
fun test2(g: Int) { noImpl }
fun test2(g: Int) { definedExternally }
}
}
@@ -1,18 +1,18 @@
// !DIAGNOSTICS: -DEPRECATION
@nativeSetter
fun Int.foo(a: String, v: Int): Int = noImpl
fun Int.foo(a: String, v: Int): Int = definedExternally
external class Bar(b: Int, c: Char) {
@nativeSetter
fun baz(d: Int, v: Int) { noImpl }
fun baz(d: Int, v: Int) { definedExternally }
}
external object Obj {
@nativeSetter
fun test1(e: String, v: Any) { noImpl }
fun test1(e: String, v: Any) { definedExternally }
object Nested {
@nativeSetter
fun test2(g: Int, v: Any) { noImpl }
fun test2(g: Int, v: Any) { definedExternally }
}
}
@@ -1,21 +1,21 @@
external annotation class <!WRONG_EXTERNAL_DECLARATION!>A(val x: Int)<!>
val x: Int
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = noImpl
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = definedExternally
class B
val B.x: Int
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = noImpl
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = definedExternally
class C {
val a: Int
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = noImpl
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = definedExternally
}
external class D {
val a: Int
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = noImpl
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = definedExternally
}
external data class <!WRONG_EXTERNAL_DECLARATION!>E(val x: Int)<!>
+9 -9
View File
@@ -1,29 +1,29 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNREACHABLE_CODE
val prop: String = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!>
val prop: String = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!>
val prop2: String
get() = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!>
get() = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!>
fun foo(x: Int, y: String = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!>) {
fun foo(x: Int, y: String = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!>) {
println("Hello")
println("world")
object {
fun bar(): Any = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!>
fun bar(): Any = <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!>
}
listOf<String>()
.map<String, String> { <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!> }
.filter(fun(x: String): Boolean { <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!> })
.map<String, String> { <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!> }
.filter(fun(x: String): Boolean { <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!> })
<!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!>
<!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!>
}
open class A(val x: Int)
open class B() : A(<!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!>) {
open class B() : A(<!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!>) {
constructor(y: String) : this()
constructor(y: String, z: String) : this(y + z + <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>noImpl<!>)
constructor(y: String, z: String) : this(y + z + <!CALL_TO_NO_IMPL_FROM_NON_EXTERNAL_DECLARATION!>definedExternally<!>)
}