[MPP] Allow smart casts for properties from dependsOn modules
Smartcasts for public properties from different module are not stable because module declaring a property in general can be compiled separately from the module using it. However, if client module has dependsOn relation with declaring module their simultaneous compilation is guaranteed which makes this smart cast safe. Cache all transitive 'expected by' modules in module dependencies. Extend test to check smart casts are allowed for properties from transitive 'expected by' dependencies and prohibited otherwise. ^KT-42754 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
data class CommonDataClass4(val property: CommonObject4?)
|
||||
|
||||
object CommonObject4 {
|
||||
fun doSomething() {}
|
||||
}
|
||||
Reference in New Issue
Block a user