bod
07/23/2025, 12:46 PM@Deprecated("Use NewName instead")
class OldName
typealias NewName = OldName
// ...
val x = OldName() // <- warning
val y = NewName() // <- warning too, bummer.
CLOVIS
07/23/2025, 2:44 PMbod
07/23/2025, 2:50 PMCLOVIS
07/23/2025, 2:56 PMNewName
typealias
• v1.3: deprecate OldName
• v2: remove OldName
and make NewName
a class
If I'm a user of v1.3
and I use the typealias NewName
, which is not deprecated, my code will still be broken if it runs with a v2 version of the librarybod
07/23/2025, 2:59 PMbod
07/23/2025, 3:00 PMCLOVIS
07/23/2025, 3:00 PMOldName
, if you can't ever remove it?bod
07/23/2025, 3:02 PMCLOVIS
07/23/2025, 3:03 PMbod
07/23/2025, 3:04 PMephemient
07/23/2025, 3:38 PMbod
07/23/2025, 3:41 PM@JvmName("SparseArrayCompat")
but yeah having it on types would be useful! Thanks for linking. ⭐