D-Programming-Language/dmd — pull request #1164 by AndrejMitrovic (2012-10-04 21:01:59+00:00)
Title: Fix Issue 6707 - Print better error message on const property mismatch

http://d.puremagic.com/issues/show_bug.cgi?id=6707

Sample:

```d
struct Foo
{
@property bool value() { return true; }

void test() const
{
auto x = value;
}
}
```

Before:

```
Error: function mymod.Foo.value () is not callable using argument types ()
```

After:

```
Error: property mymod.Foo.value () is not callable using argument types () const
```

The error message was missing `const` which made it hard to debug. Additionally I've changed the word 'function' to 'property' for property functions, which improves the message a little bit.