On Sat, 24 Sep 2011 14:10:48 -0400, simendsjo <[email protected]> wrote:

Sorry about the possible double post. I cannot see my previous..

struct S {
     @property int B() {
         return 1;
     }
}

void main() {
     S s1;
     auto a1 = s1.B; // ok
     const(S) s2;
auto a2 = s2.B; // Error: function t.S.B () is not callable using argument types ()
}

If this is the error message it is a bug.

It should say:

function t.S.B () is not callable using argument types () const

I believe this is the message you'd get if it were a member function.

-Steve

Reply via email to