diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/NewCommonSuperTypeCalculator.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/NewCommonSuperTypeCalculator.kt index 9dd627bec20..708b0ae37c2 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/NewCommonSuperTypeCalculator.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/NewCommonSuperTypeCalculator.kt @@ -26,8 +26,7 @@ object NewCommonSuperTypeCalculator { // TODO: Bridge for old calls fun commonSuperType(types: List): UnwrappedType { - val ctx = object : ClassicTypeSystemContext {} - return ctx.commonSuperType(types) as UnwrappedType + return SimpleClassicTypeSystemContext.commonSuperType(types) as UnwrappedType } fun TypeSystemCommonSuperTypesContext.commonSuperType(types: List): KotlinTypeMarker {