KT-6877 Wrong unused function inspection on anonymous object member

#KT-6877 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-07-10 18:54:35 +03:00
parent da4be8a0f5
commit 799368386b
5 changed files with 66 additions and 1 deletions
@@ -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()
}
}
@@ -0,0 +1 @@
Function call (10: 21) localObject.f()