| 1 |
// REQUIRED_ARGS: -dw |
| 2 |
// PERMUTE_ARGS: |
| 3 |
class C |
| 4 |
{ |
| 5 |
void bug() |
| 6 |
{ |
| 7 |
autoref(this); // 'auto ref' becomes non-ref parameter |
| 8 |
autoref(super); // 'auto ref' becomes non-ref parameter |
| 9 |
} |
| 10 |
} |
| 11 |
|
| 12 |
void autoref(T)(auto ref T t) { static assert(__traits(isRef, t) == false); } |