[REG2.066] Issue 13415 - '-inline' causes wrong enclosing scope pointer for nested function called from templated struct

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