July 30, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3215

           Summary: class method return ref but without any typename get
                    compiled
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: samhu.samhu@gmail.com


With below code:
class A
{
}
class B
{
public:
ref A createA() //  ****without type name A is also OK.****
{
    return new A;//q1
}

}

Don't know whether this is a feature or a bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 13, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3215


Lars T. Kyllingstad <bugzilla@kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@kyllingen.net
          Component|Phobos                      |DMD
         Resolution|                            |WONTFIX
         AssignedTo|bugzilla@digitalmars.com    |nobody@puremagic.com


--- Comment #1 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2010-08-13 04:00:55 PDT ---
It's a feature. :)  When you don't specify a type, the compiler tries to deduce it automatically.

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