diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.kt index 1112e2c8198..3d8f58d55f6 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +NewInference -// !USE_EXPERIMENTAL: kotlin.Experimental +// !USE_EXPERIMENTAL: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_PARAMETER // ISSUE: KT-35684 @@ -25,7 +25,7 @@ fun test_3() { } } -@UseExperimental(ExperimentalTypeInference::class) +@OptIn(ExperimentalTypeInference::class) fun sequence(@BuilderInference block: suspend Inv.() -> Unit): U = null!! interface Inv { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.txt index 4e04f9cd5b6..6be771d7c72 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt35684.txt @@ -1,7 +1,7 @@ package public fun materialize(): Inv -@kotlin.UseExperimental(markerClass = {kotlin.experimental.ExperimentalTypeInference::class}) public fun sequence(/*0*/ @kotlin.BuilderInference block: suspend Inv.() -> kotlin.Unit): U +@kotlin.OptIn(markerClass = {kotlin.experimental.ExperimentalTypeInference::class}) public fun sequence(/*0*/ @kotlin.BuilderInference block: suspend Inv.() -> kotlin.Unit): U public fun test_1(): kotlin.Unit public fun test_2(): kotlin.Unit public fun test_3(): kotlin.Unit