gcc/testsuite/gdc.test/fail_compilation/ice19755.d
raw| 1 | /* TEST_OUTPUT: |
| 2 | --- |
| 3 | fail_compilation/ice19755.d(11): Error: no property `x` for `self` of type `ice19755.Thunk!int*` |
| 4 | fail_compilation/ice19755.d(16): Error: template instance `ice19755.Thunk!int` error instantiating |
| 5 | --- |
| 6 | */ |
| 7 | struct Thunk(Dummy) { |
| 8 | void opAssign(int dlg) {} |
| 9 | auto get() inout { |
| 10 | Thunk* self; |
| 11 | self.x = 0; |
| 12 | } |
| 13 | alias get this; |
| 14 | } |
| 15 | |
| 16 | alias T = Thunk!int; |