Annotation type-safety

Edit pageLast modified: 28 January 2025

The library introduces a concept of annotation type-safety. Consider the following example:

The compiler can't guarantee that the passed type parameter is the one for which the code generation was run:

The compiler plugin enforces annotation type-safety by requiring type parameters to have specific annotations, like @Rpc.