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
Things are not in sync between corelibs foundation and foundation on 5.2.4 though, which causes us a bunch of painful workaround and headaches - is there a chance that the patch will also apply to any 5.2.x if/when there's going to be one?
macOS, swift 5.2.4, good:
Welcome to Apple Swift version 5.2.4(swift-5.2.4-RELEASE).1> import Foundation
3>JSONDecoder().decode(Int.self, from:"23".data(using:.utf8)!)
$R1: Int =23
ubuntu, swift 5.2.4, bad:
Welcome to Swift version 5.2.4(swift-5.2.4-RELEASE).1> import Foundation
3> let s =JSONDecoder().decode(Int.self, from:"42".data(using:.utf8)!)s: Int =0 // oh oh...
–
Things are correct on Swift 5.3, however we're not really ready to require users to bump to that version, so we're stuck with building manually looking ahead at the bytes if it maybe it a top level value and trying to handle it "manually" today...
The text was updated successfully, but these errors were encountered:
Environment
Ubuntu, Swift 5.2.4-RELEASE
Additional Detail from JIRA
md5: 4e72ea41a8582e0940c613e2d3fc8e5f
Issue Description:
I'm aware and very happy that this was fixed on master and will be fixed in Swift 5.3: #2713 ( https://bugs.swift.org/browse/SR-12275 https://bugs.swift.org/browse/SR-6163 ).
Things are not in sync between corelibs foundation and foundation on 5.2.4 though, which causes us a bunch of painful workaround and headaches - is there a chance that the patch will also apply to any 5.2.x if/when there's going to be one?
macOS, swift 5.2.4, good:
ubuntu, swift 5.2.4, bad:
–
Things are correct on Swift 5.3, however we're not really ready to require users to bump to that version, so we're stuck with building manually looking ahead at the bytes if it maybe it a top level value and trying to handle it "manually" today...
The text was updated successfully, but these errors were encountered: