Files
kotlin-fork/idea/testData/findUsages/librarySources/kotlinLibrary/LibraryPrimaryConstructorUsages.0.kt
T
Alexey Sedunov ca8e2d4956 Navigation: Implement proper getOriginalElement() for Kotlin declarations.
Run find usages tests with library for both original and navigation elements. Drop duplicating tests. Simplify test class.
TODO: Some usages are not found yet since light methods built from library files do not retain original declarations
2015-06-11 13:52:52 +03:00

20 lines
276 B
Kotlin
Vendored

// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetPrimaryConstructor
// OPTIONS: usages
// FIND_BY_REF
// WITH_FILE_NAME
package usages
import library.*
class X: A {
constructor(n: Int): super(n)
}
class Y(): A(1)
fun test() {
val a: A = A()
val aa = <caret>A(1)
}