Rename UseExperimental->OptIn, Experimental->RequiresOptIn in compiler tests
This commit is contained in:
@@ -99,10 +99,10 @@ class JvmModuleProtoBufTest : KtUsefulTestCase() {
|
||||
fun testExperimental() {
|
||||
doTest(
|
||||
"/moduleProtoBuf/experimental", extraOptions = listOf(
|
||||
"-Xuse-experimental=kotlin.Experimental",
|
||||
"-Xopt-in=kotlin.RequiresOptIn",
|
||||
"-Xexperimental=org.foo.A",
|
||||
"-Xexperimental=org.foo.B.C",
|
||||
"-Xuse-experimental=org.foo.D"
|
||||
"-Xopt-in=org.foo.D"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class ExperimentalIntegrationTest : AbstractKotlinCompilerIntegrationTest() {
|
||||
fun testJvmExperimentalModule() {
|
||||
val lib = compileLibrary(
|
||||
"lib", additionalOptions = listOf(
|
||||
"-Xuse-experimental=kotlin.Experimental",
|
||||
"-Xopt-in=kotlin.RequiresOptIn",
|
||||
"-Xexperimental=lib.ExperimentalAPI"
|
||||
),
|
||||
checkKotlinOutput = { output -> assertTrue(output, output.trimEnd().endsWith("OK")) }
|
||||
@@ -26,7 +26,7 @@ class ExperimentalIntegrationTest : AbstractKotlinCompilerIntegrationTest() {
|
||||
fun testJsExperimentalModule() {
|
||||
val lib = compileJsLibrary(
|
||||
"lib", additionalOptions = listOf(
|
||||
"-Xuse-experimental=kotlin.Experimental",
|
||||
"-Xopt-in=kotlin.RequiresOptIn",
|
||||
"-Xexperimental=lib.ExperimentalAPI"
|
||||
),
|
||||
checkKotlinOutput = { output -> assertTrue(output, output.trimEnd().endsWith("OK")) }
|
||||
|
||||
Reference in New Issue
Block a user