Transform IUO return value as well.
This commit is contained in:
parent
7ad094cf78
commit
2961debaba
|
@ -29,7 +29,7 @@ extension Templates {
|
||||||
|
|
||||||
{% for method in container.methods %}
|
{% for method in container.methods %}
|
||||||
{{ method.accessibility }}{% if container.@type == "ClassDeclaration" and method.isOverriding %} override{% endif %} func {{ method.name }}({{ method.parameterSignature }}) {{ method.returnSignature }} {
|
{{ method.accessibility }}{% if container.@type == "ClassDeclaration" and method.isOverriding %} override{% endif %} func {{ method.name }}({{ method.parameterSignature }}) {{ method.returnSignature }} {
|
||||||
return DefaultValueRegistry.defaultValue(for: {{method.returnType}}.self)
|
return DefaultValueRegistry.defaultValue(for: {{method.returnType|genericSafe}}.self)
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue