Find Usages: Fix exception in the search of class with default parameters in primary constructor

This commit is contained in:
Alexey Sedunov
2015-03-27 16:23:22 +03:00
parent 0a93cfc9c0
commit 11675322ee
4 changed files with 18 additions and 0 deletions
@@ -0,0 +1,8 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: usages, constructorUsages
class <caret>A(a: Int = 1)
fun test() {
A(0)
A()
}
@@ -0,0 +1,2 @@
New instance creation (6: 5) A(0)
New instance creation (7: 5) A()