Files
kotlin/compiler/testData/diagnostics/tests/traitWithRequired/differentGenericArguments.kt

9 lines
257 B
Kotlin

open class Generic<T>
trait A : Generic<Int>
trait B : Generic<String>
<!UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT!>class Y<!> : <!INCONSISTENT_TYPE_PARAMETER_VALUES!>A, B<!>
class Z : <!INCONSISTENT_TYPE_PARAMETER_VALUES!>A, B, Generic<Int>()<!>