Add using -Xinline-classes by default in IDE intentions

^KT-34209 Fixed
This commit is contained in:
Victor Petukhov
2020-02-17 18:17:11 +03:00
parent 79d7babb57
commit bf23b39d76
5 changed files with 42 additions and 5 deletions
@@ -594,6 +594,21 @@ class GradleConfiguratorTest : GradleImportingTestCase() {
}
}
@Test
fun testEnableFeatureSupportGSKWithoutFoundKotlinVersion() {
val files = importProjectFromTestData()
runInEdtAndWait {
myTestFixture.project.executeWriteCommand("") {
KotlinWithGradleConfigurator.changeFeatureConfiguration(
myTestFixture.module, LanguageFeature.InlineClasses, LanguageFeature.State.ENABLED, false
)
}
checkFiles(files)
}
}
@TargetVersions("4.7+")
@Test
fun testEnableFeatureSupportToExistentArgumentsWithXFlag() = testEnableFeatureSupportToExistentArguments()