Issue 13350 - is(typeof(fun)) causes link error when template fun calls undefined reference

https://issues.dlang.org/show_bug.cgi?id=13350
These 3 lines appear to be the only 'meat' in this function. Please document.