FIR: intersect flexible type bounds separately

^KT-54522 Fixed
This commit is contained in:
pyos
2022-10-18 14:19:52 +02:00
committed by Space Team
parent 8bc9fd91d5
commit ee6af9af5f
9 changed files with 69 additions and 21 deletions
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
// FILE: Util.java
import java.util.List;
public class Util {
public static <T> List<T> id(List<T> x) { return x; }
}
// FILE: main.kt
fun main() {
var list = mutableListOf(1)
list = Util.id(list)
list += 2
}
@@ -0,0 +1,13 @@
package
public fun main(): kotlin.Unit
public open class Util {
public constructor Util()
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 </*0*/ T : kotlin.Any!> id(/*0*/ x: kotlin.collections.(Mutable)List<T!>!): kotlin.collections.(Mutable)List<T!>!
}