Type inference in array literals

bearophile bearophileHUGS at lycos.com
Sat Aug 28 13:16:35 PDT 2010


klickverbot:
> class A {}
> class B {}
> 
> void main() {
>     Object[] foo = [ new A, new B ];
> }

See also:
http://d.puremagic.com/issues/show_bug.cgi?id=4030

Bye,
bearophile


More information about the Digitalmars-d mailing list