[FIR] SupertypeComputationSession: fix false positive invisible reference for local object

The problem is that FirAnonymousObject was ignored during getResolvedSuperTypeRefsForOutOfSessionDeclaration from SupertypeSupplier

^KT-58583 Fixed
This commit is contained in:
Dmitrii Gridin
2023-05-09 16:49:09 +02:00
committed by Space Team
parent c6d9821ef0
commit 2c294cba64
7 changed files with 50 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
// FIR_IDENTICAL
// FILE: DialogWrapper.kt
package pkg
open class DialogWrapper {
protected open class DialogWrapperAction
}
// FILE: Main.kt
import pkg.DialogWrapper
fun main() {
object: DialogWrapper() {
init {
object: DialogWrapperAction() {}
}
}
}