import Foundation
print("Hello, World!")
let continuousClock = ContinuousClock()
let anyClock: Clock = SuspendingClock()
compiles correctly with Xcode 14 beta 6 but fails with Xcode 14. Am I missing some build setting or compiler flag?
import Foundation
print("Hello, World!")
let continuousClock = ContinuousClock()
let anyClock: Clock = SuspendingClock()
compiles correctly with Xcode 14 beta 6 but fails with Xcode 14. Am I missing some build setting or compiler flag?
It may depend on your deployment target, as Clock requires iOS 16.
(So if your deployment target is less that 16, the compiler will throw an error.)