More correct comparison with CANT_INFER_FUNCTION_PARAM_TYPE
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user