Files
kotlin-fork/compiler/testData/diagnostics/tests/declarationChecks/kt2397.fir.kt
T
2021-01-15 14:38:35 +03:00

17 lines
333 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 = <!PROPERTY_INITIALIZER_IN_INTERFACE!>1<!>
}
class A {
<!NON_ABSTRACT_FUNCTION_WITH_NO_BODY!>final fun foo()<!>
}