KT-6877 Wrong unused function inspection on anonymous object member
#KT-6877 fixed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
class Foo {
|
||||
private val localObject = object : Any() {
|
||||
fun <caret>f() {
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
localObject.f()
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
Function call (10: 21) localObject.f()
|
||||
Reference in New Issue
Block a user