``` @Deprecated("Use new API instead", ReplaceWith...
# announcements
c
Copy code
@Deprecated("Use new API instead", ReplaceWith("someNewAPI(name, size)"), DeprecationLevel.ERROR)
fun someOldAPI(size: Int, name: String): String = TODO("something complicated")

fun someNewAPI(name: String, size: Int): String = TODO("new implementation")

fun someUsage() {
    someOldAPI(1 + 1, "") // -> someNewAPI("", 1 + 1)
}