Extract Superclass: Fix visibility lifting when moving to interface
#KT-16281 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// NAME: IPurePrivate
|
||||
// SIBLING:
|
||||
class PurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
internal var internalVar = 0
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
internal fun internalFun() {}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
interface IPurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
var internalVar: Int
|
||||
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
fun internalFun()
|
||||
}
|
||||
|
||||
// NAME: IPurePrivate
|
||||
// SIBLING:
|
||||
class PurePrivate : IPurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
override var internalVar = 0
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
override fun internalFun() {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// NAME: IPurePrivate
|
||||
// SIBLING:
|
||||
class PurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
private var privateVar = 0
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
private fun privateFun() {}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
interface IPurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
var privateVar: Int
|
||||
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
fun privateFun()
|
||||
}
|
||||
|
||||
// NAME: IPurePrivate
|
||||
// SIBLING:
|
||||
class PurePrivate : IPurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
override var privateVar = 0
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
override fun privateFun() {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// NAME: IPurePrivate
|
||||
// SIBLING:
|
||||
class PurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
protected var protectedVar = 0
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
protected fun protectedFun() {}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
interface IPurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
var protectedVar: Int
|
||||
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
fun protectedFun()
|
||||
}
|
||||
|
||||
// NAME: IPurePrivate
|
||||
// SIBLING:
|
||||
class PurePrivate : IPurePrivate {
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
override var protectedVar = 0
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
override fun protectedFun() {}
|
||||
}
|
||||
Reference in New Issue
Block a user