is this a betterC bug ?

Seb seb at wilzba.ch
Tue Aug 14 15:01:18 UTC 2018


On Tuesday, 14 August 2018 at 13:01:57 UTC, learnfirst1 wrote:
>
> enum string[] a = ["a"];
>
> extern(C) void main() {
>         int i = 0;
>         auto s = a[i];
> }
> ---------------
> Error: TypeInfo cannot be used with -betterC

You can use `static immutable` as a workaround for now:

https://run.dlang.io/is/7HEPst


More information about the Digitalmars-d-learn mailing list