Files
kotlin-fork/compiler/testData/diagnostics/tests/traitWithRequired/differentGenericArguments.kt
T
Alexander Udalov 47d5f83d04 Report unmet trait requirements
#KT-3006 Fixed
2014-08-13 17:19:55 +04:00

9 lines
257 B
Kotlin

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