4bd48c4796
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT. A set of modifier diagnostics is not in use now (but not deleted yet).
18 lines
360 B
Kotlin
Vendored
18 lines
360 B
Kotlin
Vendored
fun box(): String {
|
|
interface L1 {
|
|
fun foo(): String
|
|
}
|
|
|
|
open class L2(val s: String) : L1 {
|
|
override fun foo() = s
|
|
}
|
|
|
|
open class L3(unused: Double, value: String = "OK") : L2(value)
|
|
|
|
open class L4(i: Int, j: Long, z: Boolean, l: L3) : L3(3.14)
|
|
|
|
class L5 : L4(0, 0L, false, L3(2.71, "Fail"))
|
|
|
|
return L5().foo()
|
|
}
|