[K2] Prohibit smart casts for 'expect' properties

^KT-61340
This commit is contained in:
Anastasia.Nekrasova
2023-09-19 19:03:15 +03:00
committed by Space Team
parent e4ea733482
commit e3bab4a7da
9 changed files with 150 additions and 0 deletions
@@ -17,6 +17,9 @@ enum class SmartcastStability(private val str: String, val description: String =
// Smart casts are completely safe
STABLE_VALUE("stable val"),
// Smart casts are not safe
EXPECT_PROPERTY("expect property"),
// Member value with open / custom getter
// Smart casts are not safe
PROPERTY_WITH_GETTER("custom getter", "property that has open or custom getter"),