]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice19755.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice19755.d
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/ice19755.d(11): Error: no property `x` for 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;