summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/findUsages/kotlin/findPrimaryConstructorUsages/primaryConstructorWithKeyword.0.kt
blob: 912b92dcc16101da469d9cb36b812d09e28f59b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtPrimaryConstructor
// OPTIONS: usages
open class A <caret>constructor(n: Int) {
    constructor() : this(1)
}

class B : A {
    constructor(n: Int) : super(n)
}

class C() : A(1)

fun test() {
    A()
    A(1)
}