Skip to content

Fix error with duplicate field names

The current implementation of the derive macro Transformable produces a compiler error when there are structs that derive Transformable with the #[transformable] attribute on fields with the same name.

This merge request fixes the errors by including the name of the struct as well as the field name in all generated structs. It also adds a test for this case.

The new implementation should only fail if there is one struct Foo_Transformable_ with a field bar and another struct Foo with a field _Transformable_bar which should virtually never happen.

Merge request reports

Loading