[FIR] Include anonymous objects in containingDeclarations in FirDeclarationsResolveTransformer.kt

K1 and K2 still differ because of KT-58203

#KT-63434
This commit is contained in:
Evgeniy.Zhelenskiy
2024-01-26 00:29:56 +01:00
committed by Space Team
parent eb23984182
commit 55adeba011
10 changed files with 129 additions and 23 deletions
@@ -0,0 +1,17 @@
// SKIP_TXT
// FIR_DUMP
abstract class InlineCompletionSessionManager {
protected class Proto {
class Some
}
}
fun checkCannotAccess() {
object : InlineCompletionSessionManager() {
fun chch() {
val b: Proto = Proto()
if (b is Proto.Some) return
}
}
}