[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
Thu Aug 6 16:52:54 PDT 2009


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





--- Comment #2 from Tim M <tim.matthews7 at gmail.com>  2009-08-06 16:52:53 PDT ---
Sorry I shouldn't have rushed this but it if I provide the implementation it
makes no difference. Are we meant to be allowed a function with the same name
as its return type or is this a bug?

class Bar
{
}

class Foo
{
    Bar Bar()
    {
        return null;
    } 
}

void main()
{
}

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