mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
29 lines
656 B
Kotlin
Vendored
29 lines
656 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER, -DEPRECATION
|
|
|
|
external class A {
|
|
class B {
|
|
class C {
|
|
@nativeInvoke
|
|
fun foo() { definedExternally }
|
|
|
|
@nativeInvoke
|
|
fun invoke(a: String): Int = definedExternally
|
|
}
|
|
|
|
object obj {
|
|
@nativeInvoke
|
|
fun foo() { definedExternally }
|
|
|
|
@nativeInvoke
|
|
fun invoke(a: String): Int = definedExternally
|
|
}
|
|
|
|
companion object {
|
|
@nativeInvoke
|
|
fun foo() { definedExternally }
|
|
|
|
@nativeInvoke
|
|
fun invoke(a: String): Int = definedExternally
|
|
}
|
|
}
|
|
} |