From 4f017df23700d88ecd83e7789f4c3d37ab4aa1f2 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Mon, 2 Dec 2013 10:40:54 +0400 Subject: [PATCH] Fix kt-1800 test --- compiler/testData/codegen/boxWithStdlib/regressions/kt1800.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" }