Reuse Java safe delete for non-local functions in Kotlin

This commit is contained in:
Alexey Sedunov
2014-01-20 14:32:48 +04:00
parent e70af5d372
commit d432c10251
8 changed files with 98 additions and 37 deletions
@@ -0,0 +1,7 @@
fun foo() {
fun <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 <caret>bar() {
}
println()
}
@@ -0,0 +1,4 @@
fun foo() {
println()
}
@@ -0,0 +1,15 @@
open class A {
open fun foo() {
}
}
trait Z {
fun <caret>foo()
}
class B: A, Z {
override fun foo() {
}
}
@@ -0,0 +1,14 @@
open class A {
open fun foo() {
}
}
trait Z {
}
class B: A, Z {
override fun foo() {
}
}