More correct comparison with CANT_INFER_FUNCTION_PARAM_TYPE

This commit is contained in:
Valentin Kipyatkov
2015-06-10 15:39:13 +03:00
parent efdfa4b247
commit c8f9b466b6
2 changed files with 2 additions and 2 deletions
@@ -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)) {