----test.d
struct A{
string b;
alias b this;
}
struct MyRange{
}
char front(MyRange);
void popFront(ref MyRange);
bool empty(MyRange);
void test(A a){
a.empty;
}
----
$ dmd -o- test
test.d(14): Error: function test.empty (MyRange) is not callable
using argument types (A)
----
Is this intended behavior?