4 fail_compilation/diag14145.d(15): Error: no property `i` for type `diag14145.main.Capture!(i)`
5 fail_compilation/diag14145.d(15): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
6 fail_compilation/diag14145.d(34): Error: expression `*this.ptr` of type `shared(int)` is not implicitly convertible to return type `ref int`
7 fail_compilation/diag14145.d(16): Error: template instance `diag14145.main.Capture!(i).Capture.opDispatch!"i"` error instantiating
20 auto capture(alias c
)()
25 struct Capture(alias c
)
27 shared typeof(c
)* ptr
;
28 this(ref typeof(c
) _c
)
32 ref shared typeof(c
) opDispatch(string s
)()