Push Down: Do not specifiy visibility on generated overriding members

#KT-12971 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-15 17:44:39 +03:00
parent ad3ffdab18
commit 6766494581
5 changed files with 31 additions and 3 deletions
@@ -0,0 +1,10 @@
open class A {
// INFO: {"checked": "true", "toAbstract": "true"}
protected open fun foo() {
}
}
class B : A() {
}
@@ -0,0 +1,12 @@
open class A {
// INFO: {"checked": "true", "toAbstract": "true"}
protected abstract fun foo()
}
class B : A() {
// INFO: {"checked": "true", "toAbstract": "true"}
override fun foo() {
}
}