Don't report unused symbol if secondary constructor used
#KT-6997 Fixed
This commit is contained in:
committed by
Alexey Sedunov
parent
c6290efbe2
commit
d1308ebf84
@@ -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()
|
||||
}
|
||||
}
|
||||
+1
@@ -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()
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
New instance creation (2: 5) A()
|
||||
@@ -0,0 +1,7 @@
|
||||
fun main(args: Array<String>) {
|
||||
A()
|
||||
}
|
||||
|
||||
class A {
|
||||
constructor() {}
|
||||
}
|
||||
Reference in New Issue
Block a user