You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: no suitable method found for add(Replica)
value.parts.add(v);
^
method Collection.add(CAP#1) is not applicable
(argument mismatch; Replica cannot be converted to CAP#1)
method List.add(CAP#1) is not applicable
(argument mismatch; Replica cannot be converted to CAP#1)
where CAP#1 is a fresh type-variable:
CAP#1 extends Part from capture of ? extends Part
for such var: var parts: List<Part>
The text was updated successfully, but these errors were encountered:
We recommend using constructor parameters rather than setters. This avoids
mutable list.
@xml
class Foo(
@element val accounts : List<Account>
)
Anyway, this is a known issue and should be addressed in the annotation
processors
svedie <[email protected]> schrieb am Sa., 12. Jan. 2019, 19:54:
I get such error:
for such var:
var parts: List<Part>
The text was updated successfully, but these errors were encountered: