Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/annotationsInheritance.kt
T

21 lines
308 B
Kotlin
Vendored

// FIR_IDENTICAL
// FILE: MyAnnotation.java
public @interface MyAnnotation {
}
// FILE: MyAnnoClass.java
public class MyAnnoClass implements MyAnnotation {
//...
}
// FILE: main.kt
val ann: MyAnnotation = MyAnnoClass()
fun foo(x: MyAnnoClass) {
bar(x)
}
fun bar(y: MyAnnotation) {
y.hashCode()
}