Daniel Pitts
07/04/2024, 5:24 PMclass A
class B
interface Broken {
// @JvmName("runA") // annotation is not applicable to this declaration.
fun run(collection: Collection<A>)
fun run(collection: Collection<B>) // Platform declaration clash: The following declarations have the same JVM signature
}
Youssef Shoaib [MOD]
07/04/2024, 5:31 PM@JvmName
error. Sadly I don't know of a better fixYoussef Shoaib [MOD]
07/04/2024, 5:32 PMunit: Unit = Unit
parameterDaniel Pitts
07/04/2024, 5:32 PMDaniel Pitts
07/04/2024, 5:33 PMCLOVIS
07/05/2024, 7:44 AMYou can just suppress theIIRC that's dangerous because the annotation isn't inherited, so you have to manually put it in all implementations. It makes it easy to forget overrideserror. Sadly I don't know of a better fix@JvmName
dmitriy.novozhilov
07/05/2024, 8:48 AMDaniel Pitts
07/05/2024, 1:22 PM