From 584c353a444a623d1a2c88faf6891470b31b2942 Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Fri, 17 Nov 2023 16:21:45 +0100 Subject: [PATCH] [FIR, IR] shouldCheckAbsenceOfDefaultParamsInActual: update comment Fixing KT-61105 won't help. Review: https://jetbrains.team/p/kt/reviews/13094/timeline --- .../kotlin/resolve/calls/mpp/ExpectActualMatchingContext.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/mpp/ExpectActualMatchingContext.kt b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/mpp/ExpectActualMatchingContext.kt index 5d934d0ab24..e6e702ddb79 100644 --- a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/mpp/ExpectActualMatchingContext.kt +++ b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/mpp/ExpectActualMatchingContext.kt @@ -35,7 +35,11 @@ interface ExpectActualMatchingContext : TypeSystemC val innerClassesCapturesOuterTypeParameters: Boolean get() = true - // Try to drop it once KT-61105 is fixed + // Default params are not checked on backend because we want to keep "default params in actual" to be suppressible + // with @Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS") but backend errors are not suppressible (KT-60426) + // Known clients that do suppress: + // - stdlib + // - coroutines val shouldCheckAbsenceOfDefaultParamsInActual: Boolean /**