Why do array literals default to object.Object[]?
Moritz Maxeiner via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jul 13 01:21:30 PDT 2017
On Wednesday, 12 July 2017 at 05:24:49 UTC, Brandon Buck wrote:
> On Wednesday, 12 July 2017 at 02:06:41 UTC, Steven
> Schveighoffer wrote:
>
>> I'm sure there's a bug filed somewhere on this...
>
> Is this bug worthy? I can search for one and comment and/or
> create one if I can't find one.
It's at best very unintuitive behaviour (I had expected the
inference to go up from the class type to Object, not down from
Object), so I'd say yes.
More information about the Digitalmars-d-learn
mailing list