<Kotlin detect ProtoNumber collisions compile time...
# stackoverflow
u
Kotlin detect ProtoNumber collisions compile time I want to use kotlin.serialization ProtoBuf mode in android app. How do I check compile time that @ProtoNumber annotations don't collide? Here's example of buggy class, both annotation specify 1 as number, this is broken but gives no runtime error: @Serializable data class TestOverlap( @ProtoNumber(1) val a: Int?, @ProtoNumber(1) val b:...