Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.fir.kt
T

12 lines
230 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
package Hello
open class Base<T>
class StringBase : Base<String>()
class Client<T, X: Base<T>>(x: X)
fun test() {
val c = Client(StringBase()) // Type inference fails here for T.
val i : Int = c
}