| 1 |
// REQUIRED_ARGS: -o- |
| 2 |
// PERMUTE_ARGS: |
| 3 |
|
| 4 |
struct Foo |
| 5 |
{ |
| 6 |
auto opAssign(this X)(ref typeof(this)); |
| 7 |
auto opAssign(this X, V)(ref V) if (!is(V == typeof(this))); |
| 8 |
} |
| 9 |
|
| 10 |
void test() |
| 11 |
{ |
| 12 |
Foo src; |
| 13 |
const(Foo) target; |
| 14 |
static if (is(typeof(target = src))) {} |
| 15 |
} |