From f073e3492659d90b4d8a1f16bf064374038d80b3 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Mon, 1 Jun 2020 15:35:24 +0300 Subject: [PATCH] Update forgotten test-data --- .../noCompatibilityResolveForFunInterfaces.fir.kt | 2 +- ...ilityResolveToOuterScopeForKotlinFunctions.fir.kt | 4 ++-- ...spendConversionCompatibilityInDisabledMode.fir.kt | 2 +- .../suspendConversionDisabled.fir.kt | 12 ++++++------ .../suspendFunctionType/functionVsSuspendFunction.kt | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/compiler/testData/diagnostics/tests/funInterface/noCompatibilityResolveForFunInterfaces.fir.kt b/compiler/testData/diagnostics/tests/funInterface/noCompatibilityResolveForFunInterfaces.fir.kt index b093b5023ea..1b84b91831d 100644 --- a/compiler/testData/diagnostics/tests/funInterface/noCompatibilityResolveForFunInterfaces.fir.kt +++ b/compiler/testData/diagnostics/tests/funInterface/noCompatibilityResolveForFunInterfaces.fir.kt @@ -35,7 +35,7 @@ object Test3 { fun test(f: () -> Unit) { val result = foo(1, f) - result + result } } diff --git a/compiler/testData/diagnostics/tests/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.fir.kt b/compiler/testData/diagnostics/tests/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.fir.kt index 72c8bb283de..58e01ebe796 100644 --- a/compiler/testData/diagnostics/tests/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.fir.kt +++ b/compiler/testData/diagnostics/tests/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.fir.kt @@ -18,7 +18,7 @@ object Test1 { fun foo(r: Runnable) {} fun test(f: () -> Unit) { - foo(f) + foo(f) } } } @@ -65,7 +65,7 @@ object Test5 { fun foo(r: Runnable) {} fun test() { - foo { } + foo { } } } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionCompatibilityInDisabledMode.fir.kt b/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionCompatibilityInDisabledMode.fir.kt index 2624f705ed6..fd796932e93 100644 --- a/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionCompatibilityInDisabledMode.fir.kt +++ b/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionCompatibilityInDisabledMode.fir.kt @@ -29,7 +29,7 @@ object Test2 { fun test() { val result = foo(::bar) - result + result } } } diff --git a/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionDisabled.fir.kt b/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionDisabled.fir.kt index 07265c3543f..3ba40854cad 100644 --- a/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionDisabled.fir.kt +++ b/compiler/testData/diagnostics/tests/suspendConversion/suspendConversionDisabled.fir.kt @@ -16,12 +16,12 @@ fun test( foo1 { "str" } foo1(f0) - foo1(f1) - foo2(f2) - foo3(f3) + foo1(f1) + foo2(f2) + foo3(f3) - foo1(::bar) + foo1(::bar) - foo1(f2) - foo1(f3) + foo1(f2) + foo1(f3) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctionType/functionVsSuspendFunction.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctionType/functionVsSuspendFunction.kt index 10c77618ceb..822d060c5ef 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctionType/functionVsSuspendFunction.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctionType/functionVsSuspendFunction.kt @@ -15,5 +15,5 @@ fun test4(): suspend () -> Unit = useSuspendFn {} fun test5() = useSuspendFn {} fun test5(sfn: suspend () -> Unit) = ambiguous(sfn) -fun test6(fn: () -> Unit) = ambiguous(fn) +fun test6(fn: () -> Unit) = ambiguous(fn) fun test7(): () -> Unit = ambiguous {} \ No newline at end of file