KT-14498: Properly check variance in expanded types.
This commit is contained in:
@@ -38,7 +38,6 @@ fun <D : TypeHolder<D>> D.checkTypePosition(
|
||||
reportError: (TypeParameterDescriptor, D, Variance) -> Unit = DO_NOTHING_3,
|
||||
customVariance: (TypeParameterDescriptor) -> Variance? = { null }
|
||||
): Boolean {
|
||||
|
||||
flexibleBounds?.let {
|
||||
return it.first.checkTypePosition(position, reportError, customVariance) and
|
||||
it.second.checkTypePosition(position, reportError, customVariance)
|
||||
|
||||
Reference in New Issue
Block a user