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
This commit is contained in:
Denis.Zharkov
2022-05-30 19:05:47 +03:00
committed by teamcity
parent 67e6687e89
commit 461d91a10e
8 changed files with 72 additions and 21 deletions
@@ -0,0 +1,10 @@
// FIR_IDENTICAL
// SKIP_TXT
val w: Int = 2
class Outer {
private inner class Inner private constructor(x: Int) {
constructor() : this(w)
}
}