[FIR] Assume smartacsts on member properties from friend modules as stable

^KT-57893 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-04-11 16:17:55 +03:00
committed by Space Team
parent 0d1500f23f
commit f8ef478647
8 changed files with 85 additions and 1 deletions
@@ -0,0 +1,26 @@
// ISSUE: KT-57893
// MODULE: main
internal class A {
val x: String? = null
}
class B {
internal val x: String? = null
}
class C {
val x: String? = null
}
// MODULE: test()(main)
internal fun test(a: A, b: B, c: C) {
if (a.x != null) {
<!DEBUG_INFO_SMARTCAST!>a.x<!>.length
}
if (b.x != null) {
<!DEBUG_INFO_SMARTCAST!>b.x<!>.length
}
if (c.x != null) {
<!SMARTCAST_IMPOSSIBLE!>c.x<!>.length
}
}