JohanEngelen typecons: fix use-after-scope bug in RefCounted unittest (dlang#8751)
f496135 May 30, 2023
typecons: fix use-after-scope bug in RefCounted unittest (dlang#8751)
* typecons: fix use-after-scope bug in RefCounted unittest

The access through `p` to `rc1` outside the scope of `rc1` is undefined behavior. We have to artificially end the scope of `rc1` and `rc2`, such that within the same scope we can check that the destructor calls do the correct thing of nulling the `_store`.

* fixup

* fixup
f496135