Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/annotations/jvmField/interface13.fir.kt
T
Tianyu Geng 6b453d9b23 FIR: implement checker for open members
Specifically,

1. NON_FINAL_MEMBER_IN_FINAL_CLASS
2. NON_FINAL_MEMBER_IN_OBJECT
2021-02-19 10:17:18 +03:00

60 lines
727 B
Kotlin
Vendored

// !LANGUAGE: +JvmFieldInInterface
interface A {
companion object {
@JvmField
val c = 3
}
}
interface B {
companion object {
@JvmField
val c = 3
@JvmField
val a = 3
}
}
interface C {
companion object {
@JvmField
val c = 3
val a = 3
}
}
interface D {
companion object {
@JvmField
var c = 3
}
}
interface E {
companion object {
@JvmField
private val a = 3
@JvmField
internal val b = 3
@JvmField
protected val c = 3
}
}
interface F {
companion object {
@JvmField
<!NON_FINAL_MEMBER_IN_OBJECT!>open<!> val a = 3
}
}