[FIR DFA] Don't consider anonymous object as stable initializer to bind

#KT-43332 Fixed
This commit is contained in:
Mikhail Glukhikh
2020-11-26 12:54:56 +03:00
parent 1dc897346c
commit 0a0b5b5d2b
8 changed files with 56 additions and 2 deletions
@@ -145,6 +145,7 @@ class VariableStorage(private val session: FirSession) {
returns(true) implies(this@isStable != null)
}
when (this) {
is FirAnonymousObjectSymbol -> return false
is FirFunctionSymbol<*>,
is FirClassSymbol<*>,
is FirBackingFieldSymbol -> return true