On Sunday, 20 November 2016 at 11:46:04 UTC, Marc Schütz wrote:
Try placing it outside the function. Method call syntax doesn't work with nested functions, see here:https://dlang.org/spec/function.html#pseudo-member"The reason why local symbols are not considered by UFCS, is to avoid unexpected name conflicts."
Aha! Now it works. Thank you for the explanation.