[Issue 3231] Function declared to return a type with its same name doesn't compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 9 12:02:16 PDT 2009


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





--- Comment #15 from BCS <shro8822 at vandals.uidaho.edu>  2009-08-09 12:02:15 PDT ---
(In reply to comment #9)
> 
> Better beware of hijacking vulnerabilities.

class Foo {}

class Bar
{
    int Foo(){}

    // this would become a conflict with only an arbitrary resolution.
    alias Foo Baz; 
}

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