summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/findUsages/kotlin/findPrimaryConstructorUsages/primaryConstructorNoKeyword.0.kt
blob: 5ddd44a48610fedf563f37c021c2ffc70038e469 (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>(n: Int) {
    constructor() : this(1)
}

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

class C() : A(1)

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