Files
swift-mirror/test/Constraints/disable_availability_checking.swift
T

12 lines
250 B
Swift

// RUN: %target-typecheck-verify-swift -disable-availability-checking -swift-version 5
struct S {
@available(swift, obsoleted: 4.2)
init(foo: Int) throws {}
@available(swift, introduced: 4.2)
init?(foo: Int) throws {}
}
_ = try S(foo: 42)