pp.amorim
09/19/2018, 9:51 AMerluxman
09/19/2018, 9:52 AMgildor
09/19/2018, 10:24 AMpp.amorim
09/19/2018, 10:34 AMlet d = [foo, bar, fee]
with many items. The compiler never finishes the compilation.
You need to do:
var d: [Int] = []; d += foo; d += bar; d += fee
erluxman
09/19/2018, 11:39 AMpp.amorim
09/19/2018, 12:38 PMgildor
09/19/2018, 1:48 PMIt has to do with type inference. Each time you use the + operator, Swift has to search through all of the possible overloads for + and infer which version of + you are usingis this because of explicit imports are not required by default?
pp.amorim
09/19/2018, 1:57 PM