Check out this line of code:
if parts[2].characters.count > 0 { data["I3"] = Int(parts[2]) }
This worked fine in 2.x, but in 3.0 it complains:
Cannot subscript a value of type 'inout [String]' (aka 'inout Array<String>')
It took me a *long* time before I consider that the error was incorrect and
found this trivial solution:
if c > 0 && parts[0].characters.count > 0 { data["I1"] = Int(parts[0]) as
NSNumber? }
So, is this a "bug"? The error has nothing to do with indexing, it seems. But
maybe I'm wrong?
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users