On 8/27/21 3:14 PM, Steven Schveighoffer wrote:
> To work around, you can do:
>
> ```d
> template Foo(alias var)
> {
> void inc() {var.a++}
> }
> ```
>
> and then pass `v` instead of `v.a`.
Another possible workaround:
```d
auto v = V(4);
ref int a() { return v.a; }
alias foo = Foo!a;
foo.inc();
```
-Steve