[Issue 4030] Better object array literal type inference

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4030

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|future  |D2

--


[Issue 4030] Better object array literal type inference

2010-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4030


klickverbot c...@klickverbot.at changed:

   What|Removed |Added

 CC||c...@klickverbot.at


--- Comment #1 from klickverbot c...@klickverbot.at 2010-08-28 16:23:02 PDT 
---
There is an even shorter example which fails on DMD 2.048:
---
class A {}
class B {}

void main() {
   Object[] foo = [ new A, new B ];
}
---

TDPL has: The element type of the array is determined by agreement among all
elements of the array, which is computed by means of the conditional operator ?
: (anticipating � 2.3.16).

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