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
@@ -1,6 +1,5 @@
// "Make A.foo open" "false"
// ACTION: Convert to expression body
// ERROR: 'foo' in 'A' is final and cannot be overridden
// ERROR: This type is final, so it cannot be inherited from
class A() {
open fun foo() {}