[FIR] Approximate exotic return types for public declarations

This commit is contained in:
Mikhail Glukhikh
2020-09-02 10:48:07 +03:00
parent bf918e6184
commit a7da0d5080
11 changed files with 54 additions and 22 deletions
@@ -29,6 +29,6 @@ fun chained2(arg: First) = run {
}
fun test(arg: First) {
chained1(arg).first()
chained2(arg).first()
chained1(arg).<!UNRESOLVED_REFERENCE!>first<!>()
chained2(arg).<!UNRESOLVED_REFERENCE!>first<!>()
}
@@ -33,6 +33,6 @@ fun intersectArgWithSmartCastFromLambda(arg: One, arg2: Base) = argOrFn(arg) {
}
fun test() {
intersectAfterSmartCast(O1, O2).base()
intersectArgWithSmartCastFromLambda(O1, O2).base()
intersectAfterSmartCast(O1, O2).<!UNRESOLVED_REFERENCE!>base<!>()
intersectArgWithSmartCastFromLambda(O1, O2).<!UNRESOLVED_REFERENCE!>base<!>()
}
@@ -18,5 +18,5 @@ fun smartCastAfterIntersection(a: One, b: Two) = run {
}
fun test(one: One, two: Two) {
smartCastAfterIntersection(one, two)?.base()
smartCastAfterIntersection(one, two)?.<!UNRESOLVED_REFERENCE!>base<!>()
}
@@ -21,5 +21,5 @@ fun <S> intersectNoBound(vararg elements: S): S = TODO()
fun some(a: One, b: Two, c: Three) = intersectNoBound(intersect(a, b), c)
fun test(arg: Base, arg2: Base) {
some(O1, O2, O3).base()
some(O1, O2, O3).<!UNRESOLVED_REFERENCE!>base<!>()
}