Update test results

Separated issue reported: KT-22522

#KT-22369 Fixed
This commit is contained in:
Cuihtlauac ALVARADO
2018-01-23 11:10:53 +01:00
committed by Stanislav Erokhin
parent 31e73e90d6
commit 923d9f03fc
2 changed files with 14 additions and 1 deletions
@@ -23,5 +23,5 @@ fun <T> out(t: T): Out<MutableList<T>> = null!!
fun test(a: Out<Nothing>, b: Out<MutableList<J>>) {
val v = f(a, b, out(J.j()))
v checkType { _<MutableList<J>>() }
v checkType { <!NI;DEBUG_INFO_UNRESOLVED_WITH_TARGET, NI;UNRESOLVED_REFERENCE_WRONG_RECEIVER!>_<!><MutableList<J?>>() }
v checkType { <!NI;DEBUG_INFO_UNRESOLVED_WITH_TARGET, NI;UNRESOLVED_REFERENCE_WRONG_RECEIVER, OI;TYPE_MISMATCH!>_<!><MutableList<J?>>() }
}
@@ -9,3 +9,16 @@ public interface Out</*0*/ out T1> {
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
package p {
public open class J {
public constructor J()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
public open fun j(): p.J!
}
}