dmd
dmd copied to clipboard
isCopyConstructable should call isCopyable
Seeing if this can be done.
Thanks for your pull request, @WalterBright!
Bugzilla references
Your PR doesn't reference any Bugzilla issue.
If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
Testing this PR locally
If you don't have a local development environment setup, you can use Digger to test this PR:
dub run digger -- build "master + dmd#16944"
This fails to compile libmir with:
source/mir/rc/ptr.d(395,15): Error: `mir.rc.ptr.castTo` called with argument types `(mir_rcptr!(C))` matches both:
source/mir/rc/ptr.d(275,13): `mir.rc.ptr.castTo!(I, C).castTo(mir_rcptr!(C) context)`
and:
source/mir/rc/ptr.d(291,25): `mir.rc.ptr.castTo!(I, C).castTo(immutable(mir_rcptr!(C)) context)`