https://issues.dlang.org/show_bug.cgi?id=12100
--- Comment #11 from [email protected] --- A temporary workaround (not meant to be left in place forever) could be using lambdas as cookie: pragma(msg, ((int) => 0).stringof); pragma(msg, ((int) => 0).stringof); void main() {} Output: __lambda3 __lambda4 --
