From 9d2524a790c10a725fce225023ef4cce34102dba Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Tue, 20 Nov 2018 17:16:34 +0300 Subject: [PATCH] Fix failing test because of lack of inference annotation LINENUMBER was incremented because of added import --- .../coroutines/debug/localVariableCorrectLabel.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt b/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt index 2a3f65a5b83..07125e5871c 100644 --- a/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt +++ b/compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt @@ -1,6 +1,7 @@ // LANGUAGE_VERSION: 1.3 import kotlin.sequences.* +import kotlin.experimental.* fun main(args: Array) { val s = sequence { @@ -11,7 +12,9 @@ fun main(args: Array) { println(s.toList()) } +@UseExperimental(ExperimentalTypeInference::class) +@BuilderInference suspend fun SequenceScope.awaitSeq(): Int = 42 // 1 LOCALVARIABLE a I L19 L23 3 -// 1 LINENUMBER 9 L19 +// 1 LINENUMBER 10 L19