Files
kotlin-fork/compiler/testData/diagnostics/tests/objects/kt21515/annotationConstructor.fir.kt
T

14 lines
241 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion
open class Base {
companion object {
annotation class Foo
}
}
class Derived : Base() {
@<!UNRESOLVED_REFERENCE!>Foo<!>
fun foo() = 42
}