abcd.length does not work but "abcd".length does in swift
| Originator: | cheyo | ||
| Number: | rdar://17170302 | Date Originated: | 04-Jun-2014 09:55 PM |
| Status: | Open | Resolved: | no |
| Product: | Swift | Product Version: | beta 3 |
| Classification: | Reproducible: | yes |
import Foundation
import Cocoa
var abcd:String = "abcd"
println("abcd".length) // returns correctly 4
println(abcd.utf16Length) // Does not work
println(abcd.length) // Does not work
println(abcd == "abcd") // Returns TRUE!
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!