FIR: intersect flexible type bounds separately
^KT-54522 Fixed
This commit is contained in:
+14
@@ -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
|
||||
}
|
||||
+13
@@ -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!>!
|
||||
}
|
||||
Reference in New Issue
Block a user