Files
kotlin-fork/idea/testData/quickfix/addGenericUpperBound/inferenceTwoParams.kt
T
2019-05-06 13:59:24 +03:00

8 lines
335 B
Kotlin
Vendored

// "Add 'kotlin.Any' as upper bound for E" "true"
// ERROR: Type parameter bound for U in fun <T : Any, U : Any> foo(x: T, y: U): Int<br> is not satisfied: inferred type F is not a subtype of Any
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
fun <T : Any, U: Any> foo(x: T, y: U) = 1
fun <E, F> bar(x: E, y: F) = <caret>foo(x, y)