You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so I will implement identical method in my public exception:
publicextensionString {
// wait wait wait... why no error here?publicfunchasPrefix(_prefix: String) -> Bool {
returntrue// fake it till you make it
}
}
and use it. This will execute my version of String.hasPrefix(), that is rather unexpected and error prone.
Environment
Swift 3.0
Xcode Version 8.0 (8A218a)
Additional Detail from JIRA
md5: 7d718780e7221a039308f9570fa8f365
relates to:
Issue Description:
https://gist.github.com/krzyzanowskim/a373a7d68e6808c06d6760d2a834f488
String already have hasPefix() in stdlib
https://github.com/apple/swift/blob/caa173b27a34a26f82a15ccc76cf4d8f95587637/stdlib/public/core/StringLegacy.swift#L143
so I will implement identical method in my public exception:
and use it. This will execute my version of String.hasPrefix(), that is rather unexpected and error prone.
¯_(ツ)_/¯
The text was updated successfully, but these errors were encountered: