Files
Andrey Cherkasov 1e90f85566 [kotlin] Port AddGenericUpperBoundFix to K2
This quick is for the UPPER_BOUND_VIOLATED and UPPER_BOUND_VIOLATED_BASED_ON_JAVA_ANNOTATIONS compiler errors.

^KTIJ-29567

GitOrigin-RevId: b1741545da363c64cc3df770f5ce5443221536d9
2024-09-21 02:56:36 +00:00

8 lines
271 B
Kotlin

// "Add 'E' as upper bound for F" "true"
fun <T, U : T> foo() = 1
fun <E, F> bar() = foo<E, F<caret>>()
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddGenericUpperBoundFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddGenericUpperBoundFix