From 7733611c47d53ab10c22733fb46156b49844650b Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 15 Jan 2020 17:19:06 +0300 Subject: [PATCH] [TEST] Replace `Experimental` with `OptIn` in testdata --- .../testsWithStdLib/coroutines/inference/kt35684.kt | 4 ++-- .../testsWithStdLib/coroutines/inference/kt35684.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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