``` import std.typecons; interface I { @safe: void foo (); } void main () { auto c = new WhiteHole!I; // error auto c = new BlackHole!I; // ok } ``` /Library/D/dmd/src/phobos/std/typecons.d-mixin-4530(4535): Error: `@safe` function `std.typecons.AutoImplement!(I, generateAssertTrap, isAbstractFunction).AutoImplement.foo` cannot call `@system` constructor `std.typecons.NotImplementedError.this`
@MoonlightSentinel created dlang/phobos pull request #7375 "Fix Issue 20232 - WhiteHole is unusable with @safe interface functions" fixing this issue: - Fix Issue 20232 - WhiteHole is unusable with @safe interface functions https://github.com/dlang/phobos/pull/7375
@MoonlightSentinel created dlang/phobos pull request #7376 "Fix Issue 20540 - (White|Black)Hole does not work with return|scope functions" fixing this issue: - Fix Issue 20232 - WhiteHole is unusable with @safe interface functions https://github.com/dlang/phobos/pull/7376
dlang/phobos pull request #7376 "Fix Issue 20540 - (White|Black)Hole does not work with return|scope functions" was merged into master: - 869d9b561332ac0bf15a1c5db188d99aa8636ddb by MoonlightSentinel: Fix Issue 20232 - WhiteHole is unusable with @safe interface functions https://github.com/dlang/phobos/pull/7376