1 /* REQUIRED_ARGS: -preview=bitfields
4 fail_compilation/test16188.d(101): Error: no property `name` for `Where()` of type `test16188.Where`
5 fail_compilation/test16188.d(101): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
6 fail_compilation/test16188.d(103): struct `Where` defined here
10 // https://issues.dlang.org/show_bug.cgi?id=16188
12 /* This produces the message:
13 * Error: no property 'name' for type 'Where'
14 * when the actual error is 'getMember is undefined'.
15 * This happens because errors are gagged when opDispatch() is compiled,
16 * I don't understand why.
21 void where() { Where().name
; }
25 void opDispatch(string name
)()
27 alias FieldType
= typeof(getMember
);
32 struct WhereField(FieldType
) {}