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

20 lines
429 B
Kotlin
Vendored

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