[Issue 4030] Better object array literal type inference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 28 16:23:14 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4030
klickverbot <code at klickverbot.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |code at klickverbot.at
--- Comment #1 from klickverbot <code at 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: -------
More information about the Digitalmars-d-bugs
mailing list