Skip to content
Snippets Groups Projects
Commit 009219f4 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

All super methods on extension method override

parent 58d56814
Branches
Tags
No related merge requests found
......@@ -27,7 +27,11 @@ extension {{class.name}}
{% endif %}
{% endfor %}
default:
fatalError("Cannot set value for key \(key)")
{% if class.needsMethodOverride %}
super.setValueByKey(key: key, value: value)
{% else %}
print("Cannot find variable \(key)")
{% endif %}
}
}
......@@ -41,7 +45,11 @@ extension {{class.name}}
{% endif %}
{% endfor %}
default:
fatalError("Cannot set value for key \(key)")
{% if class.needsMethodOverride %}
return super.getValueByKey(key: key)
{% else %}
return nil
{% endif %}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment