Replace not debug usages of DescriptorRenderer.DEBUG_TEXT to DescriptorRenderer.FQ_NAMES_IN_TYPES.

This commit is contained in:
Stanislav Erokhin
2016-05-25 00:25:37 +03:00
parent 710e920df7
commit 4b9aac6318
65 changed files with 92 additions and 92 deletions
@@ -350,7 +350,7 @@ class KotlinPsiUnifier(
}
private fun matchTypes(types1: Collection<KotlinType>, types2: Collection<KotlinType>): Boolean {
fun sortTypes(types: Collection<KotlinType>) = types.sortedBy { DescriptorRenderer.DEBUG_TEXT.renderType(it) }
fun sortTypes(types: Collection<KotlinType>) = types.sortedBy { DescriptorRenderer.FQ_NAMES_IN_TYPES.renderType(it) }
if (types1.size != types2.size) return false
return (sortTypes(types1).zip(sortTypes(types2))).all { matchTypes(it.first, it.second) == MATCHED }