extend test for code cleanup with changing visibility from private to internal for declarations, which are used outside of their file.

This commit is contained in:
Michael Nedzelsky
2015-09-10 16:35:02 +03:00
parent 93dfaf72f7
commit 9fd968d59e
5 changed files with 28 additions and 1 deletions
+5
View File
@@ -22,6 +22,11 @@ fun foo() {
oldFun1(oldFun2(10))
oldFun2()
ff()
val xx = valX
varX = 50
varY = 60
}
fun unnecessarySafeCall(x: String) {
+5
View File
@@ -21,6 +21,11 @@ fun foo() {
bar(bar(10 + 2) + 1)
oldFun2()
ff()
val xx = valX
varX = 50
varY = 60
}
fun unnecessarySafeCall(x: String) {
+8
View File
@@ -0,0 +1,8 @@
private fun ff() {}
private val valX = 10
private var varX = 20
var varY = 30
private set(value: Int) {}
+8
View File
@@ -0,0 +1,8 @@
internal fun ff() {}
internal val valX = 10
internal var varX = 20
var varY = 30
internal set(value: Int) {}