https://issues.dlang.org/show_bug.cgi?id=17443
Issue ID: 17443
Summary: std.traits.ParameterDefaults fails for parameters with
@disabled this(this)
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
struct NonCopyable
{
@disable this(this);
}
void foo(NonCopyable p = NonCopyable.init) {}
void main()
{
import std.traits;
alias defaults = ParameterDefaults!foo;
// Error: struct NonCopyable is not copyable because it is annotated with
@disable.
}
--