Unused symbol: fix false positive in anonymous object in top level or companion object
#KT-31800 Fixed #KT-20868 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
ef1e54eda9
commit
a3252b9480
+14
@@ -0,0 +1,14 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
|
||||
// OPTIONS: usages
|
||||
class Foo {
|
||||
companion object {
|
||||
private val localObject = object : Any() {
|
||||
fun <caret>f() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
localObject.f()
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
Function call 12 localObject.f()
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
|
||||
// OPTIONS: usages
|
||||
private val localObject = object : Any() {
|
||||
fun <caret>f() {
|
||||
}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
fun bar() {
|
||||
localObject.f()
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
Function call 10 localObject.f()
|
||||
Reference in New Issue
Block a user