lindquist@32: module bug6; lindquist@32: class wrong { } lindquist@32: void bark(ref wrong s) { s = new wrong; } lindquist@32: void foo(wrong tree) { lindquist@32: auto old = tree; lindquist@32: bark(tree); lindquist@32: assert(old !is tree); lindquist@32: } lindquist@32: void main() lindquist@32: { lindquist@32: auto w = new wrong; lindquist@32: auto old = w; lindquist@32: foo(w); lindquist@32: assert(w is old); lindquist@32: }