Transform IUO return value as well.

This commit is contained in:
Matyáš Kříž 2018-11-09 14:17:09 +01:00
parent 7ad094cf78
commit 2961debaba
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ extension Templates {
{% for method in container.methods %}
{{ 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 %}
}