FIR: fix nullability computation of intersection of flexible types

Without this, currently,

  it(ft(J..J?), ft(J..J?) => J

which should be ft(J..J?) instead.
This commit is contained in:
Jinseong Jeon
2021-04-01 11:28:06 -07:00
committed by Dmitriy Novozhilov
parent 0cb039eea7
commit 871b5a2174
6 changed files with 16 additions and 11 deletions
@@ -9,8 +9,8 @@ class J {
fun bar() {
var v: String?
v = J.foo()
v.length
gav(v)
v<!UNSAFE_CALL!>.<!>length
<!INAPPLICABLE_CANDIDATE!>gav<!>(v)
}
fun gav(v: String) = v
fun gav(v: String) = v