[FE 1.0] Skip improper constraints while determining READY_FOR_FIXATION_DECLARED_UPPER_BOUND_WITH_SELF_TYPES type variable readiness
^KT-51148 Fixed
This commit is contained in:
committed by
teamcity
parent
500295da68
commit
c25e07119c
@@ -0,0 +1,19 @@
|
||||
fun box(): String {
|
||||
return <!TYPE_MISMATCH!>someFunction<!><!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><SomeEnum><!>()
|
||||
}
|
||||
|
||||
interface SomeInterface <V> {
|
||||
|
||||
val value: V
|
||||
|
||||
}
|
||||
|
||||
enum class SomeEnum {
|
||||
|
||||
A, B, C
|
||||
|
||||
}
|
||||
|
||||
fun <V, T> someFunction(): String where T : Enum<T>, T : SomeInterface<V> {
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user