[Issue 4329] Do not show error messages that refer to __error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 9 12:50:01 PDT 2010


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



--- Comment #12 from bearophile_hugs at eml.cc 2010-09-09 12:49:36 PDT ---
struct Foo {
    int x;
}
void main() {
    Foo(5 ^^ 5); // line 5
}

DMD 2.048 shows:
test.d(5): Error: must import std.math to use ^^ operator
test.d(5): Error: structliteral has no effect in expression (Foo((__error)))

---------------------------

void foo() {}
void main() {
    foreach (x; foo()[0 .. 1]) {}
}

DMD 2.048 shows:
test.d(3): Error: foo() cannot be sliced with []
test.d(3): Error: foreach: _error_ is not an aggregate type

-- 
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