diff --git a/compiler/testData/codegen/boxWithStdlib/regressions/kt1800.kt b/compiler/testData/codegen/boxWithStdlib/regressions/kt1800.kt index 305fc47fb88..ee218005e4d 100644 --- a/compiler/testData/codegen/boxWithStdlib/regressions/kt1800.kt +++ b/compiler/testData/codegen/boxWithStdlib/regressions/kt1800.kt @@ -9,7 +9,7 @@ public class User(val firstName: String, fun toString() = "$firstName $lastName, age $age" } -public fun > Collection.min(): T? { +public fun > Collection.testMin(): T? { var minValue: T? = null for(value in this) { if (minValue == null || value.compareTo(minValue!!) < 0) { @@ -26,6 +26,6 @@ fun box() : String { val ages = users.map { it.age } - val minAge = ages.min() + val minAge = ages.testMin() return if (minAge == 27) "OK" else "fail" }