[Issue 926] New: Implicit conversion from Derived[] to Base[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 3 09:14:55 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=926
Summary: Implicit conversion from Derived[] to Base[]
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: csantander619 at gmail.com
In
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=47590,
Kan noted that this was again allowed:
class A {}
class B : A {}
void main()
{
B [] b;
A [] a = b;
}
I don't know if the docs mention it, but it seems to have been re-allowed out
of the blue.
--
More information about the Digitalmars-d-bugs
mailing list