c25e07119c
^KT-51148 Fixed
19 lines
306 B
Kotlin
Vendored
19 lines
306 B
Kotlin
Vendored
fun box(): String {
|
|
return <!INAPPLICABLE_CANDIDATE!>someFunction<!><<!CANNOT_INFER_PARAMETER_TYPE!>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"
|
|
} |