[Issue 17443] New: std.traits.ParameterDefaults fails for parameters with @disabled this(this)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat May 27 03:04:04 PDT 2017
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: nobody at puremagic.com
Reporter: stanislav.blinov at gmail.com
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.
}
--
More information about the Digitalmars-d-bugs
mailing list