There is no universal `nil`. `nil` is typed. That said think of `nil` as a shorthand form for `Optional<YourType>.none`
-- Adrian Zubarev Sent with Airmail Am 23. Januar 2017 um 11:24:18, Седых Александр via swift-users (swift-users@swift.org(mailto:swift-users@swift.org)) schrieb: > > Hello. > I have a simple expression with Any and is not work. Why? > > > var dictarray: [[String: Any]] = [["kek": nil]] > > \\ Nil is not compatible with expected dictionary value type 'Any' > > > > > > > -- > > And in other hand this is work > > > var dictarray: [[String: Any]] = [[:]] \\ [[:]], dictarray.count = 1 > > > > > Седых Александр _______________________________________________ > swift-users mailing list > swift-users@swift.org > https://lists.swift.org/mailman/listinfo/swift-users
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users