Re: [swift-users] Type inference of array element type

2017-03-24 Thread Toni Suter via swift-users
Ok, I submitted a bug report (https://bugs.swift.org/browse/SR-4347 ) and I'll try to fix it in the next few days. Thanks and best regards Toni > Am 24.03.2017 um 18:51 schrieb Mark Lacey : > >> >> On Mar 24, 2017, at 3:08 AM, Toni

Re: [swift-users] Type inference of array element type

2017-03-24 Thread Mark Lacey via swift-users
> On Mar 24, 2017, at 3:08 AM, Toni Suter via swift-users > wrote: > > Hi, > > If I declare a variable and initialize it with an array literal whose > elements are integer literals and nil literals, > the compiler will infer the type Array for that variable:

Re: [swift-users] Type inference of array element type

2017-03-24 Thread Rien via swift-users
I always yield to proof ;-) hope someone more knowledgable chips in... Regards, Rien Site: http://balancingrock.nl Blog: http://swiftrien.blogspot.com Github: http://github.com/Balancingrock Project: http://swiftfire.nl > On 24 Mar 2017, at 11:53, Toni Suter wrote: > >