Extract Interface/Pull Up: Warn about private members with usages in the original class

#KT-15606 Fixed
This commit is contained in:
Alexey Sedunov
2017-01-11 15:46:35 +03:00
parent 1c16d2af1a
commit 65b9049d59
14 changed files with 127 additions and 10 deletions
@@ -0,0 +1,8 @@
// NAME: I
// SIBLING:
class <caret>Foo {
// INFO: {checked: "true"}
private fun privateFun() = 0
fun refer() = privateFun()
}
@@ -0,0 +1 @@
Function 'fun privateFun(): Int' can't be moved to the interface because it's private and has usages in the original class