Reputation: 1812
let s : Int32 = 4 + var // var is Int32 somewhere else
msg.substringToIndex(msg.startIndex.advancedBy(s)
Error code: Cannot invoke 'advancedBy' with an argument list of type '(Int32)'
I have tried with UInt32, it has the same kind of error
Upvotes: 0
Views: 496