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