https://issues.dlang.org/show_bug.cgi?id=18167 --- Comment #1 from Seb <greensunny12 at gmail.com> --- Another example: void test @safe { static class A {} auto w = appender!(shared(A)[])(); w.put(new shared A()); } --