Closed saket closed 3 months ago
This is probably a weird edge case, but moshi-sealed doesn't like this setup:
moshi-sealed
@JsonClass(generateAdapter = true, generator = "sealed:type") sealed interface Foo { @NestedSealed sealed interface SuperFoo : Foo @TypeLabel("real") data class RealFoo(…) : SuperFoo, Foo }
Duplicate label 'real' defined for com.example.package.Foo.RealFoo and com.example.package.Foo.RealFoo.
This is probably a weird edge case, but
moshi-sealed
doesn't like this setup: