[FIR JS] Prepare the test data for FIR

This commit is contained in:
Nikolay Lunyak
2023-01-03 13:24:08 +02:00
committed by Space Team
parent 0e38d0ebd2
commit 73c89a5d9d
181 changed files with 3790 additions and 10 deletions
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNREACHABLE_CODE
// unreachable code suppressed due to KT-9586
@@ -38,4 +39,4 @@ external object O {
fun foo(s: String): String
fun bar(s: String): String = definedExternally
}
}
@@ -0,0 +1,13 @@
// !DIAGNOSTICS: -DEPRECATION
<!NON_MEMBER_FUNCTION_NO_BODY!>@nativeGetter
fun String.foo(n: Int): Int?<!>
@nativeGetter
fun String.bar(n: Int): Int? = definedExternally
external interface T {
@nativeGetter
fun foo(d: Double): String?
@nativeGetter
fun bar(d: Double): String?
}
@@ -0,0 +1,13 @@
// !DIAGNOSTICS: -DEPRECATION
<!NON_MEMBER_FUNCTION_NO_BODY!>@nativeInvoke
fun String.foo(): Int<!>
@nativeInvoke
fun String.bar(): Int = definedExternally
external object O {
@nativeInvoke
fun foo()
@nativeInvoke
fun bar() { definedExternally }
}
@@ -0,0 +1,13 @@
// !DIAGNOSTICS: -DEPRECATION
<!NON_MEMBER_FUNCTION_NO_BODY!>@nativeSetter
fun String.foo(n: Int, v: Any)<!>
@nativeSetter
fun String.bar(n: Int, v: Any) {}
external class C {
@nativeSetter
fun foo(d: Double, v: Any): Any
@nativeSetter
fun bar(d: Double, v: Any): Any = definedExternally
}