Revert "[FIR] Do not smartcast class delegation implemented properties"

This reverts commit bb6f466162.

Reverting the fix for KT-57417 as it causes failures in IntelliJ and
Space projects. May reintroduce fix after failures are investigated and
resolved.
This commit is contained in:
Brian Norman
2024-01-29 10:28:43 -06:00
committed by Space Team
parent e8be5b4b0b
commit 7f9774819c
8 changed files with 5 additions and 54 deletions
@@ -1,11 +0,0 @@
// ISSUE: KT-57417
interface HasProperty {
val property: Int?
}
class Test(delegate: HasProperty) : HasProperty by delegate
fun test(a: Test) {
if (a.property != null) <!SMARTCAST_IMPOSSIBLE!>a.property<!> + 1
}
@@ -1,11 +0,0 @@
// ISSUE: KT-57417
interface HasProperty {
val property: Int?
}
class Test(delegate: HasProperty) : HasProperty by delegate
fun test(a: Test) {
if (a.property != null) <!DEBUG_INFO_SMARTCAST!>a.property<!> + 1
}