// !DIAGNOSTICS_NUMBER: 2 // !DIAGNOSTICS: TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS // see DiagnosticMessageTest import java.io.Closeable class MyList(t: T) {} fun getMyList(t: T): MyList = MyList(t) fun writeToMyList (l: MyList< in T>, t: T) where E: Closeable {} class Cons(l: MyList, t: T) fun test1(int: Int, any: Any) { writeToMyList(getMyList(int), any) Cons(getMyList(int), any) }