Files
kotlin-fork/idea/idea-completion/testData/basic/common/InsideAnonymousClass.kt
T
Roman Golyshev 28d8d2d903 FIR IDE: Search for the first non-local declaration in EnclosingDeclarationContext::detect
Local declarations do not have a stable `ClassId`, which is used in
`declarationUtils.collectDesignation`. Local classes will always have
`outerClassId.isLocal = true`, even when it is not true (see
`org.jetbrains.kotlin.fir.builder.Context.currentClassId` for why this
happens)
2021-04-13 11:40:20 +00:00

16 lines
262 B
Kotlin
Vendored

// FIR_COMPARISON
class A(private val xxx1: Int, val xxx2: Int) {
private val xxx3: Int = 0
private val x = object : Runnable {
override fun run() {
<caret>
}
}
}
// EXIST: xxx1
// EXIST: xxx2
// EXIST: xxx3
// EXIST: x