19 lines
380 B
Kotlin
Vendored
19 lines
380 B
Kotlin
Vendored
// !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 }
|
|
}
|
|
}
|