Files
kotlin/compiler/testData/diagnostics/testsWithJsStdLib/native/nativeInvoke/onNestedDeclarationsInsideNativeClass.kt
2017-01-24 20:14:31 +03:00

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
}
}
}