Add Safe Delete tests for extension functions and properties

This commit is contained in:
Alexey Sedunov
2014-01-23 14:56:28 +04:00
parent 572e09e9ea
commit 83c9c49125
31 changed files with 273 additions and 0 deletions
@@ -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()
}