mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
17 lines
456 B
D
17 lines
456 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice19755.d(12): Error: no property `x` for `self` of type `ice19755.Thunk!int*`
|
|
fail_compilation/ice19755.d(8): struct `Thunk` defined here
|
|
fail_compilation/ice19755.d(17): Error: template instance `ice19755.Thunk!int` error instantiating
|
|
---
|
|
*/
|
|
struct Thunk(Dummy) {
|
|
void opAssign(int dlg) {}
|
|
auto get() inout {
|
|
Thunk* self;
|
|
self.x = 0;
|
|
}
|
|
alias get this;
|
|
}
|
|
|
|
alias T = Thunk!int;
|