FIR checker: add diagnostic OVERRIDING_FINAL_MEMBER

This commit is contained in:
Jinseong Jeon
2021-01-28 16:26:00 -08:00
committed by Dmitriy Novozhilov
parent 4ef1e1119f
commit 80d5a1a1db
10 changed files with 67 additions and 13 deletions
@@ -1,7 +0,0 @@
open class A {
final fun foo() {}
}
class B : A() {
override fun foo() {}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
open class A {
final fun foo() {}
}
@@ -5,7 +5,7 @@ class Foo {
class Bar : Foo() {
override fun openFoo() {}
override fun finalFoo() {}
<!OVERRIDING_FINAL_MEMBER!>override<!> fun finalFoo() {}
}