Type inference failed: Cannot infer type parameter T in
fun <`T, E : kotlin.Cloneable> writeToMyList ( l: MyList<`in T>, t: T ) : kotlin.Unit where E : java.io.Closeable
None of the following substitutions
( MyList<`in kotlin.Any>, kotlin.Any )
( MyList<`in kotlin.Int>, kotlin.Int )
can be applied to
( MyList<`kotlin.Int>, kotlin.Any )