https://issues.dlang.org/show_bug.cgi?id=19812 --- Comment #5 from Walter Bright <bugzilla at digitalmars.com> --- The fix appears to be in the `return` inference for auto functions. It should look for returning an instance of a nested class. --