[PSI2IR] Fix parameter initialization for constructors with CR

This commit is contained in:
Anastasiya Shadrina
2021-10-29 05:19:14 +07:00
committed by TeamCityServer
parent 4caf42804a
commit 2fbfee3e11
20 changed files with 232 additions and 286 deletions
@@ -67,7 +67,7 @@ infix operator fun <T : Any?> T.compareTo(<this>: Comparator<T>, other: T): Int
val <T : Any?> Pair<T, T>.min: T
get(<this>: Comparator<T>): T {
return when {
less(arg0 = <this>.<get-first>().compareTo<T>(<this> = <this> /*as T */, other = <this>.<get-second>()), arg1 = 0) -> <this>.<get-first>()
less(arg0 = <this>.<get-first>().compareTo<T>(<this> = <this>, other = <this>.<get-second>()), arg1 = 0) -> <this>.<get-first>()
else -> <this>.<get-second>()
}
}