www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Error message for lookups went anwful since 2.059

reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
module test;
struct Foo { }

void main()
{
    Foo f;
    auto x = f.x;
}

2.058:
$ dmd test.d
test.d(6): Error: no property 'x' for type 'Foo'

2.059:
$dmd test.d
test.d(6): Error: undefined identifier 'x'

I think we took a big step back with this change. Was this maybe
caused by UFCS changes?
Oct 20 2012
parent "Jesse Phillips" <jessekphillips+D gmail.com> writes:
On Saturday, 20 October 2012 at 17:47:21 UTC, Andrej Mitrovic 
wrote:
 module test;
 struct Foo { }

 void main()
 {
     Foo f;
     auto x = f.x;
 }

 2.058:
 $ dmd test.d
 test.d(6): Error: no property 'x' for type 'Foo'

 2.059:
 $dmd test.d
 test.d(6): Error: undefined identifier 'x'

 I think we took a big step back with this change. Was this maybe
 caused by UFCS changes?
Probably UFCS, I'd say file a bug. Actually one may exist, sounds a little familiar.
Oct 21 2012