On 9/24/11, simendsjo <simend...@gmail.com> wrote: > struct S { > @property int B() { > return 1; > } > }
I've reported the error message just recently because it's very uninformative. But the solution is to add const to your property function: struct S { @property int B() const { return 1; } }