[Issue 8894] 2.059: Lookup error message has become uninformative
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 25 16:17:20 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8894
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at 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: -------
More information about the Digitalmars-d-bugs
mailing list