mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
26 lines
597 B
Kotlin
26 lines
597 B
Kotlin
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun foo() {
|
|
[native]
|
|
class A {
|
|
nativeInvoke
|
|
fun foo() {}
|
|
|
|
nativeInvoke
|
|
fun invoke(a: String): Int = 0
|
|
|
|
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>nativeInvoke
|
|
fun Int.ext()<!> = 1
|
|
|
|
<!NATIVE_ANNOTATIONS_ALLOWED_ONLY_ON_MEMBER_OR_EXTENSION_FUN!>nativeInvoke
|
|
fun Int.invoke(a: String, b: Int)<!> = "OK"
|
|
|
|
val anonymous = object {
|
|
nativeInvoke
|
|
fun foo() {}
|
|
|
|
nativeInvoke
|
|
fun invoke(a: String): Int = 0
|
|
}
|
|
}
|
|
} |