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
@@ -23,7 +23,7 @@ fun g(x: B<Int>) {
}
if (y is Nothing?) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>f<!>(y)
<!OVERLOAD_RESOLUTION_AMBIGUITY!>g<!>(y)
f(y)
<!NONE_APPLICABLE!>g<!>(y)
}
}
}