Files
swift-mirror/test/Availability/pack_conformance_availability.swift
Allan Shortlidge 897a74f495 Tests: Move some availability tests into a new test/Availability directory.
Un-reverts 9c01ee2c1b.

Also, add myself as a reviewer for more availability related files.

NFC.
2025-06-23 15:57:34 -07:00

15 lines
321 B
Swift

// RUN: %target-typecheck-verify-swift
func f<each T: P>(_: repeat each T) {}
protocol P {}
struct S {}
@available(*, unavailable)
extension S: P {}
// expected-note@-1 {{conformance of 'S' to 'P' has been explicitly marked unavailable here}}
f(S())
// expected-error@-1 {{conformance of 'S' to 'P' is unavailable}}