[Issue 3215] New: class method return ref but without any typename get compiled
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 30 03:00:11 PDT 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 at digitalmars.com
ReportedBy: samhu.samhu at 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: -------
More information about the Digitalmars-d-bugs
mailing list