mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
29 lines
576 B
Kotlin
Vendored
29 lines
576 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER, -DEPRECATION
|
|
|
|
external class A {
|
|
@nativeInvoke
|
|
fun foo() {}
|
|
|
|
@nativeInvoke
|
|
fun invoke(a: String): Int = 0
|
|
|
|
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
|
val foo = 0
|
|
|
|
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
|
object Obj1 {}
|
|
|
|
companion object {
|
|
@nativeInvoke
|
|
fun foo() {}
|
|
|
|
@nativeInvoke
|
|
fun invoke(a: String): Int = 0
|
|
|
|
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
|
val foo = 0
|
|
|
|
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
|
|
object Obj2 {}
|
|
}
|
|
} |