Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLib/export/wrongExportedDeclaration.fir.kt
T
2023-01-09 08:57:08 +00:00

49 lines
745 B
Kotlin
Vendored

// !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)