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