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

30 lines
673 B
Kotlin
Vendored

// FIR_IDENTICAL
// !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
}
}
}