Add Safe Delete tests for extension functions and properties
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
import test.foo
|
||||
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
fun B.<caret>foo() {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
class B {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
import test.foo
|
||||
|
||||
class B {
|
||||
val ref = ::foo
|
||||
}
|
||||
|
||||
fun B.<caret>foo() {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
function test.foo has 1 usage that is not safe to delete.
|
||||
@@ -0,0 +1,7 @@
|
||||
fun foo() {
|
||||
fun String.<caret>bar() {
|
||||
|
||||
}
|
||||
|
||||
"".bar()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
function foo.bar has 1 usage that is not safe to delete.
|
||||
@@ -0,0 +1,7 @@
|
||||
fun foo() {
|
||||
fun String.<caret>bar() {
|
||||
|
||||
}
|
||||
|
||||
println()
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
|
||||
println()
|
||||
}
|
||||
Reference in New Issue
Block a user