[Issue 8414] with statement causes linker error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 4 14:31:27 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #4 from bearophile_hugs at eml.cc 2012-11-04 14:31:23 PST ---
OK:

import std.algorithm;
enum Foo { A, B, C }
int main() {
    with (Foo) {
        return canFind([A, B, C], C);
    }
}



Linking error:

import std.algorithm;
enum Foo { A, B, C }
int main() {
    with (Foo)
        return canFind([A, B, C], C);
}

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