View mode: basic / threaded / horizontal-split · Log in · Help
October 20, 2012
Error message for lookups went anwful since 2.059
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?
October 21, 2012
Re: Error message for lookups went anwful since 2.059
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.
Top | Discussion index | About this forum | D home