[FIR JS] Prepare the test data for FIR
This commit is contained in:
committed by
Space Team
parent
0e38d0ebd2
commit
73c89a5d9d
+2
-1
@@ -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
|
||||
}
|
||||
}
|
||||
+13
@@ -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?
|
||||
}
|
||||
+13
@@ -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 }
|
||||
}
|
||||
+13
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user