897854b3dc
#KT-6671 fixed
11 lines
272 B
Kotlin
11 lines
272 B
Kotlin
package Hello
|
|
|
|
open class Base<T>
|
|
class StringBase : Base<String>()
|
|
|
|
class Client<T, X: Base<T>>(<!UNUSED_PARAMETER!>x<!>: X)
|
|
|
|
fun test() {
|
|
val c = Client(StringBase()) // Type inference fails here for T.
|
|
val <!UNUSED_VARIABLE!>i<!> : Int = <!TYPE_MISMATCH!>c<!>
|
|
} |