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:
committed by
Dmitriy Novozhilov
parent
0cb039eea7
commit
871b5a2174
Vendored
+3
-3
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user