From db91928984e54f191bfcc16d5f40a464896fe223 Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Thu, 7 Feb 2013 16:35:39 +0400 Subject: [PATCH] test fixes after refactorings expected return type for function literal cannot depend on expected type of outer function --- .../tests/inference/possibleCycleOnConstraints.kt | 2 +- .../inference/reportingImprovements/FunctionPlaceholder.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt index d9ae91f79f0..db9176965ae 100644 --- a/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt +++ b/compiler/testData/diagnostics/tests/inference/possibleCycleOnConstraints.kt @@ -9,5 +9,5 @@ fun test() { val x = g { Collections.emptyList() } val y = g { Collections.emptyList() } - val z : List = g { Collections.emptyList() } + val z : List = g { Collections.emptyList() } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt index 18d0f3a35e1..afc5efa9897 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt @@ -10,7 +10,7 @@ fun test() { foo { x -> x} foo { (x: Int) -> x} - bar { it + 1 } - bar { x -> x + 1} + bar { it + 1 } + bar { x -> x + 1} bar { (x: Int) -> x + 1} -} +} \ No newline at end of file