From a20f1bdb6e92905ee00eebf6002462734bf1bf2c Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Mon, 13 Apr 2015 18:47:15 +0300 Subject: [PATCH] Change the expected diagnostic output after `reduce` signature has been changed. --- .../testData/diagnostics/testsWithStdLib/resolve/kt4711.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt index 3aafaf0742c..eb84b493a3e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/resolve/kt4711.kt @@ -6,10 +6,10 @@ fun main(args:Array) { val startTimeNanos = System.nanoTime() // the problem sits on the next line: - val pi = 4.0.toDouble() * delta * (1..n).reduce( + val pi = 4.0.toDouble() * delta * (1..n).reduce( {t, i -> val x = (i - 0.5) * delta - t + 1.0 / (1.0 + x * x) + t + 1.0 / (1.0 + x * x) }) // !!! pi has error type here