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



--- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-10-25 
16:17:19 PDT ---
(In reply to comment #0)
> 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'
> 
> Best guess: it's probably related to UFCS changes in 2.059.

It seems errors are gagged at this point in "Expression *Type::getProperty(Loc
loc, Identifier *ident)" in file mtype.c:

if (this != Type::terror)
{
    assert(global.gag);  // << passes

    if (s)
        error(loc, "no property '%s' for type '%s', did you mean '%s'?",
ident->toChars(), toChars(), s->toChars());
    else
        error(loc, "no property '%s' for type '%s'", ident->toChars(),
toChars());
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to