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 +1,7 @@
// !WITH_NEW_INFERENCE
enum class E : Cloneable {
A;
override fun clone(): Any {
<!OVERRIDING_FINAL_MEMBER!>override<!> fun clone(): Any {
return super.<!UNRESOLVED_REFERENCE!>clone<!>()
}
}