[FIR] Run FirSupertypesChecker for anonymous objects, ^KT-54300 Fixed

This commit is contained in:
Ivan Kochurkin
2022-10-04 22:14:19 +02:00
committed by Space Team
parent 69ee40325b
commit 1deb253bac
8 changed files with 12 additions and 5 deletions
@@ -46,7 +46,7 @@ fun test() {
val x9: (Foo<Float>) -> Int = { x: Foo<<!UNDERSCORE_USAGE_WITHOUT_BACKTICKS, UNRESOLVED_REFERENCE!>_<!>> -> 10 }
val x10 = object : <!UNRESOLVED_REFERENCE!>_<!> {}
val x11 = object : Foo<<!UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE!>_<!>> {}
val x11 = object : <!FINAL_SUPERTYPE!>Foo<<!UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE!>_<!>><!> {}
if (x11 is <!UNRESOLVED_REFERENCE!>_<!>) { }
if (<!USELESS_IS_CHECK!>x11 is Foo<<!UNRESOLVED_REFERENCE!>_<!>><!>) { }