c25e07119c
^KT-51148 Fixed
20 lines
301 B
Kotlin
Vendored
20 lines
301 B
Kotlin
Vendored
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"
|
|
}
|