~ captured types
diff --git a/compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt b/compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt
index 549f823..f010b76 100644
--- a/compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt
+++ b/compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt
@@ -202,6 +202,10 @@
return this.intersectedTypes.any { it.containsInternal(predicate) }
}
+ if (this is ConeCapturedType) {
+ return this.lowerType?.containsInternal(predicate) == true || this.constructor.projection.type?.containsInternal(predicate) == true
+ }
+
repeat(argumentsCount()) { index ->
val argument = getArgument(index)
if (!argument.isStarProjection() && argument.getType().containsInternal(predicate)) return true