Comment #0 by stanislav.blinov — 2017-05-27T10:04:04Z
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.
}
Comment #1 by bugzilla — 2020-01-09T19:00:59Z
To fix this IMHO __parameters needs to be worked on first. Currently ParameterDefaults uses a hack to get the value which doesn't work here.
Comment #2 by robert.schadek — 2024-12-01T16:30:17Z