FIR checker: apply member checkers to anonymous objects

because they can have member properties/functions too.
This commit is contained in:
Jinseong Jeon
2021-06-22 23:36:34 -07:00
committed by TeamCityServer
parent 64a275cf83
commit cd78a156c5
5 changed files with 28 additions and 23 deletions
@@ -264,7 +264,7 @@ class ClassObject() {
fun foo() {
val a = object {
val x : Int
val y : Int
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val y : Int<!>
val z : Int
init {
x = 1
@@ -282,7 +282,7 @@ class TestObjectExpression() {
fun foo() {
val a = object {
val x : Int
val y : Int
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val y : Int<!>
init {
if (true)
x = 12