[REG2.067a] Issue 13498 - Return type is not checked in function template

https://issues.dlang.org/show_bug.cgi?id=13498