Undeprecate 'kotlinOptions' DSL

'@ReplaceWith' is not that flexible in this case and proper IDE support
required for smooth migration. After such migration in IDE will be added
 - deprecation should be restored.

 ^KT-54399 Fixed
This commit is contained in:
Yahor Berdnikau
2022-10-12 15:41:43 +02:00
committed by teamcity
parent a244aaf162
commit 860d3fda95
19 changed files with 13 additions and 127 deletions
@@ -484,8 +484,8 @@ private fun Printer.generateDeprecatedInterface(
parentType: FqName? = null,
) {
val afterType = parentType?.let { " : $it" }
// Add @Deprecated annotation back once proper migration to compilerOptions will be supported
val modifier = """
@Deprecated("Use ${compilerOptionType.shortName()} instead", level = DeprecationLevel.WARNING)
interface
""".trimIndent()
generateDeclaration(modifier, type, afterType = afterType) {