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
Currently, Serde tries to use the default value from a matching-name constructor parameter as a default for a property. That's fine if it's a promoted property. If there is a constructor parameter that matches the name of a separately defined property, however, and they don't have the same type, type errors can occur.
Context
Ran into this in MiDy.
Possible implementation
Should be pretty easy to add an extra isPromoted check in Field.
The text was updated successfully, but these errors were encountered:
Detailed description
Currently, Serde tries to use the default value from a matching-name constructor parameter as a default for a property. That's fine if it's a promoted property. If there is a constructor parameter that matches the name of a separately defined property, however, and they don't have the same type, type errors can occur.
Context
Ran into this in MiDy.
Possible implementation
Should be pretty easy to add an extra isPromoted check in Field.
The text was updated successfully, but these errors were encountered: