Don't report unused symbol if secondary constructor used

#KT-6997 Fixed
This commit is contained in:
Denis Zharkov
2015-03-11 18:24:26 +03:00
committed by Alexey Sedunov
parent c6290efbe2
commit d1308ebf84
9 changed files with 46 additions and 1 deletions
@@ -0,0 +1,5 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: usages, constructorUsages
open class <caret>A {
constructor() {}
}
@@ -0,0 +1,5 @@
class B {
public static void foo() {
new A()
}
}
@@ -0,0 +1 @@
New instance creation (3: 13) new A()
@@ -0,0 +1,5 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: usages, constructorUsages
open class <caret>A {
constructor() {}
}
@@ -0,0 +1,3 @@
fun foo() {
A()
}
@@ -0,0 +1 @@
New instance creation (2: 5) A()
@@ -0,0 +1,7 @@
fun main(args: Array<String>) {
A()
}
class A {
constructor() {}
}