Test is not registered for polymorphic serialization in the scope of class A
The error occurs because there are two
fields. If it is possible it would be nice that this name clash issue would be reported at compile time or if it is not possible I think there should be a better error message that states that one has two
fields and it is impossible to resolve the polymorphic type. What do you think?