From e2dcf47b3b24c234767fadd4933a5e04dd80575f Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Tue, 8 Aug 2017 00:25:08 +0300 Subject: [PATCH] Fix highlighting range of diagnostic in test data Because of ae3497c6ce95cc6ebc8b466c34e0d0b01dfb584b --- .../testsWithStdLib/coroutines/inference/kt15516.kt | 4 ++-- .../testsWithStdLib/coroutines/lambdaExpectedType.kt | 2 +- .../functionLiterals/pseudocodeMemoryOverhead.kt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt index 0fc666fb951..8767aa172c8 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt @@ -1,6 +1,6 @@ // SKIP_TXT class StateMachine internal constructor() { - fun getInputStub(): Q = null as Q + fun getInputStub(): Q = null as Q } fun stateMachine(block: suspend StateMachine.() -> Unit): StateMachine { @@ -8,7 +8,7 @@ fun stateMachine(block: suspend StateMachine.() -> } class Problem(){ - fun getInputStub(): F = null as F + fun getInputStub(): F = null as F fun createStateMachine(): StateMachine = stateMachine { val letter = getInputStub() diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt index c66e84f7f6f..6b8e0edd9d6 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt @@ -20,7 +20,7 @@ fun foo() { val x = { 1 } builder(x) - builder({1} as (suspend () -> Int)) + builder({1} as (suspend () -> Int)) var i: Int = 1 i = genericBuilder({ 1 }) diff --git a/compiler/testData/diagnostics/testsWithStdLib/functionLiterals/pseudocodeMemoryOverhead.kt b/compiler/testData/diagnostics/testsWithStdLib/functionLiterals/pseudocodeMemoryOverhead.kt index 170a7e70064..05114af9b8a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/functionLiterals/pseudocodeMemoryOverhead.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/functionLiterals/pseudocodeMemoryOverhead.kt @@ -5,7 +5,7 @@ private fun unaryOperation( functionName: String, operation: Function1, checker: Function1 -) = UnaryOperationKey(a, functionName) to Pair(operation, checker) as Pair, Function1> +) = UnaryOperationKey(a, functionName) to Pair(operation, checker) as Pair, Function1> private fun binaryOperation( a: CompileTimeType, @@ -13,7 +13,7 @@ private fun binaryOperation( functionName: String, operation: Function2, checker: Function2 -) = BinaryOperationKey(a, b, functionName) to Pair(operation, checker) as Pair, Function2> +) = BinaryOperationKey(a, b, functionName) to Pair(operation, checker) as Pair, Function2> private data class UnaryOperationKey(val f: CompileTimeType, val functionName: String) //HashMap, Pair, Function2>>