Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext/typeexpr: Convert defaults for optional attrs
When parsing optional object attribute defaults, we previously verified that the default value was convertible to the attribute type. However, we did not keep this converted value. This commit uses the converted default value, rather than delaying conversion until later. In turn this prevents crashes when transforming collections which contain objects with optional attributes, caused by incompatible object types at the time of defaults application.
- Loading branch information