Comment #0 by andrej.mitrovich — 2014-06-25T11:43:51Z
-----
class F
{
void test(string str)
{
this.str = "";
}
}
void main()
{
}
-----
$ dmd test.d
> test.d(5): Error: no property 'str' for type 'test.F'
The compiler should try to detect whether 'str' is also a parameter name, and in this case emit something like:
$ dmd test.d
> test.d(5): Error: no property 'str' for type 'test.F', did you mean parameter 'str'?
Comment #1 by robert.schadek — 2024-12-13T18:21:43Z