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

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