kotlin-stdlib / kotlin / ReplaceWith / <init> <init> Common JVM JS Native 1.0 <init> ( expression : String , vararg imports : String ) Specifies a code fragment that can be used to replace a deprecated function, property or class. Tools such as IDEs can automatically apply the replacements specified through this annotation.