fix ordering of fields in initializer
This commit is contained in:
parent
83962a9c16
commit
1931c14e45
|
|
@ -12,7 +12,7 @@ import ObjectMapper
|
|||
{% include 'blocks/class/fields.twig' with { fields: fields } %}
|
||||
// MARK: - Initializers
|
||||
|
||||
{% if (hasParent and (fields is empty)) %} override {% endif %}init({%- include 'blocks/class/init-parameters-fields.twig' with { fields: merge(fields, superclassesFields) } -%}) {
|
||||
{% if (hasParent and (fields is empty)) %} override {% endif %}init({%- include 'blocks/class/init-parameters-fields.twig' with { fields: allFieldsOrdered } -%}) {
|
||||
{%- include 'blocks/class/fields-initialization.twig' with { fields: fields } -%}
|
||||
{% if hasParent %}
|
||||
super.init({%- include 'blocks/class/fields-super-initialization.twig' with { fields: superclassesFields } -%})
|
||||
|
|
|
|||
Loading…
Reference in New Issue