On Wednesday, 4 December 2019 at 23:27:49 UTC, Steven Schveighoffer wrote: > void main() > { > foo!a(); // const(int) > foo!b(); // immutable(int) > foo!c(); // const(int) > } Ok, so one has to use a wrapper and then "catch" the result with auto? auto x = foo!f();