Reuse Java safe delete for non-local functions in Kotlin
This commit is contained in:
@@ -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() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user