[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
@@ -0,0 +1,48 @@
// !OPT_IN: kotlin.js.ExperimentalJsExport
// !RENDER_DIAGNOSTICS_MESSAGES
// !DIAGNOSTICS: -INLINE_CLASS_DEPRECATED
package foo
@JsExport
inline fun <reified T> inlineReifiedFun(x: Any) = x is T
@JsExport
suspend fun suspendFun() { }
@JsExport
val String.extensionProperty
get() = this.length
@JsExport
annotation class AnnotationClass
@JsExport
interface SomeInterface
@JsExport
external interface GoodInterface
@JsExport
interface InterfaceWithCompanion {
companion object {
fun foo() = 42
}
}
@JsExport
interface OuterInterface {
class Nested
}
@JsExport
value class A(val a: Int)
@JsExport
inline class B(val b: Int)
@JsExport
inline value class C(val c: Int)
@JsExport
value inline class D(val d: Int)