1 /* PERMUTE_ARGS:
2  */
3 
4 // https://issues.dlang.org/show_bug.cgi?id=16188
5 
6 /* This produces the message:
7  *   Error: no property 'name' for type 'Where'
8  * when the actual error is 'getMember is undefined'.
9  * This happens because errors are gagged when opDispatch() is compiled,
10  * I don't understand why.
11  */
12 
where()13 void where() { Where().name; }
14 
15 struct Where
16 {
opDispatchWhere17     void opDispatch(string name)()
18     {
19         alias FieldType = typeof(getMember);
20         WhereField!FieldType;
21     }
22 }
23 
WhereField(FieldType)24 struct WhereField(FieldType) {}
25 
26