Files
kotlin-fork/compiler/testData/diagnostics/tests/declarationChecks/kt2397.fir.kt
T

17 lines
252 B
Kotlin
Vendored

//KT-2397 Prohibit final methods in traits with no implementation
package a
interface T {
final fun foo()
final val b : Int
final fun bar() {}
final val c : Int
get() = 42
final val d = 1
}
class A {
final fun foo()
}