https://issues.dlang.org/show_bug.cgi?id=16142
Issue ID: 16142
Summary: Adding a dtor / postblit (even disabled) forces
opAssign
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
```
struct A
{
@disable this(this);
@disable void opAssign(const A);
}
struct B
{
A a;
}
void main()
{
B b;
b = B();
}
```
This compiles and run without problem, even though `A` has its `opAssign`
disabled.
--
