Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLib/native/unusedParam/nativeInvoke.kt
T
2023-01-09 08:57:08 +00:00

20 lines
397 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -DEPRECATION
@nativeInvoke
fun Int.foo(a: String): Int = definedExternally
external class Bar(b: Int, c: Char) {
@nativeInvoke
fun baz(d: Int) { definedExternally }
}
external object Obj {
@nativeInvoke
fun test1(e: String) { definedExternally }
object Nested {
@nativeInvoke
fun test2(g: Int) { definedExternally }
}
}