diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.txt b/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.txt index cb07ce62458..ff6f5c28578 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.txt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/MissingParameterTypes.txt @@ -1,6 +1,6 @@ package -internal val a: (???) -> [ERROR : Cannot be inferred] +internal val a: (???) -> ??? internal val b: (kotlin.Int) -> kotlin.Int internal val c: (kotlin.Int, kotlin.String) -> kotlin.Int internal val d: (kotlin.Int, kotlin.String) -> kotlin.Int diff --git a/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt b/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt index 7ea5e76eea6..bd0cc6cdd3a 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt @@ -180,7 +180,7 @@ internal class DescriptorRendererImpl( private fun renderInflexibleType(type: JetType): String { assert(!type.isFlexible()) { "Flexible types not allowed here: " + renderNormalizedType(type) } - if (type identityEquals CANT_INFER_FUNCTION_PARAM_TYPE || TypeUtils.isDontCarePlaceholder(type)) { + if (type == CANT_INFER_FUNCTION_PARAM_TYPE || TypeUtils.isDontCarePlaceholder(type)) { return "???" } if (ErrorUtils.isUninferredParameter(type)) {