如何在Kotlin@Deprecated注释中指定泛型类型参数?
我想重命名Kotlin类型,留下一个不推荐使用的typealias以允许编译现有代码如何在Kotlin@Deprecated注释中指定泛型类型参数?,kotlin,Kotlin,我想重命名Kotlin类型,留下一个不推荐使用的typealias以允许编译现有代码 typealias TestContext<F> = ContextBuilder<F> 导致将TextContext替换为ContextBuilder 我如何编写replaceWith表达式,以便IntelliJ将TextContext替换为ContextBuilder?目前看来我还不能-使之成为可能的建议现在可以了!ReplaceWithintention保存Kotlin插件v1.
typealias TestContext<F> = ContextBuilder<F>
导致将TextContext
替换为ContextBuilder
我如何编写replaceWith表达式,以便IntelliJ将
TextContext
替换为ContextBuilder
?目前看来我还不能-使之成为可能的建议现在可以了!ReplaceWith
intention保存Kotlin插件v1.3.40上的泛型类型参数(请参阅)
@Deprecated("TestContext is now ContextBuilder",
replaceWith = ReplaceWith("ContextBuilder<F>"))
@Deprecated("TestContext is now ContextBuilder",
replaceWith = ReplaceWith("ContextBuilder"))