I'm still hitting this bug on dmd 2.073.0:
https://issues.dlang.org/show_bug.cgi?id=13009

I'm having trouble creating a minimal repro, but the error is:

Error: std.typecons.RefCounted!(MyPayload, cast(RefCountedAutoInitialize)1).RefCounted.refCountedPayload called with argument types () matches both: typecons.d(5198): std.typecons.RefCounted!(MyPayload, cast(RefCountedAutoInitialize)1).RefCounted.refCountedPayload()
and:
typecons.d(5190): std.typecons.RefCounted!(MyPayload, cast(RefCountedAutoInitialize)1).RefCounted.refCountedPayload()


Can't the second overload just be put in an 'else' for the 'static if'?:

https://github.com/dlang/phobos/blob/db204e0f8a4cc2d5235d95b5fb10dfcc9ea35048/std/typecons.d#L5296-L5312




Reply via email to