Don't report error on member that overrides open member from final class

#KT-14598 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-06-21 19:10:16 +03:00
parent 9847278699
commit 0f350f5db8
6 changed files with 111 additions and 14 deletions
@@ -0,0 +1,28 @@
class Foo {
<!NON_FINAL_MEMBER_IN_FINAL_CLASS!>open<!> fun openFoo() {}
fun finalFoo() {}
}
class Bar : <!FINAL_SUPERTYPE!>Foo<!>() {
override fun openFoo() {}
<!OVERRIDING_FINAL_MEMBER!>override<!> fun finalFoo() {}
}
open class A1 {
open fun foo() {}
}
class B1 : A1()
class C1 : <!FINAL_SUPERTYPE!>B1<!>() {
override fun foo() {}
}
abstract class A2 {
abstract fun foo()
}
<!ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED!>class B2<!> : A2()
class C2 : <!FINAL_SUPERTYPE!>B2<!>() {
override fun foo() {}
}