implier icon indicating copy to clipboard operation
implier copied to clipboard

Keep annotations on generated declarations

Open manosbatsis opened this issue 3 years ago • 2 comments

Would be great if

@MutableImpl(annotationPackages = [foo.Bar::class])
interface Sample {
   @foo.Bar
    val sample: String
   @get:foo.Baz
    val number: Int
}

generated

class MutableSample(
   @foo.Bar
   public override var sample: String,
   @get:foo.Baz
   public override var number: Int
) : Sample

Happy to add a PR!

manosbatsis avatar Jul 27 '22 03:07 manosbatsis

Do you mean that generated declaration should keep annotations?

y9vad9 avatar Aug 07 '22 15:08 y9vad9

also related to #8

y9vad9 avatar Aug 28 '22 22:08 y9vad9