[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:
Victor Petukhov
2022-02-09 11:48:30 +03:00
committed by teamcity
parent 500295da68
commit c25e07119c
8 changed files with 119 additions and 7 deletions
@@ -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"
}