Something like this
struct A
{
this(int value) { this._value = value; }
private int _value;
alias _value this;
}
struct B
{
this(int value) { this._value = value; }
private int _value;
alias _value this;
}
void main(string[] args)
{
A a = 11;
B b = 12;
a = b;
}
except that
the final statement should error.
