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



--- Comment #3 from Maksim Zholudev <[email protected]> 2013-02-04 08:12:40 
PST ---
Signature constraints are ignored also for structures:
-------------------
struct A
{
    void foo(string s)() if(s == "a") {}
}

struct B
{
    void foo(string s)() if(s == "b") {}
}

struct Foo
{
    A a;
    B b;
    alias a.foo foo;
    alias b.foo foo;
}

void main()
{
    Foo f;
    f.foo!"a"();
}
-------------------
test.d(16): Error: alias test.Foo.foo conflicts with alias test.Foo.foo at
test.d(15)
-------------------

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

Reply via email to