Files
kotlin-fork/compiler/testData/diagnostics/tests/visibility/innerClassDelegatingConstructorCallToPrivate.kt
T
Denis.Zharkov 461d91a10e FIR: Rework checking dispatch receivers applicability
Using `ownerLookupTag` might be wrong in case of private constuctors
 of inner classes: their owner is an Inner class, but expected
 dispach receiver is Outer
2022-06-01 16:02:31 +00:00

11 lines
160 B
Kotlin
Vendored

// FIR_IDENTICAL
// SKIP_TXT
val w: Int = 2
class Outer {
private inner class Inner private constructor(x: Int) {
constructor() : this(w)
}
}