mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rather than immediately outright banning the old protocol, just make it be a deprecated typealias for the real one.
8 lines
391 B
Swift
8 lines
391 B
Swift
// RUN: %target-typecheck-verify-swift \
|
|
// RUN: -disable-availability-checking \
|
|
// RUN: -debug-diagnostic-names
|
|
|
|
struct S : _BitwiseCopyable {} // expected-warning {{'_BitwiseCopyable' is deprecated: Use BitwiseCopyable}}
|
|
|
|
func f<T : _BitwiseCopyable>(_ t: T) {} // expected-warning {{'_BitwiseCopyable' is deprecated: Use BitwiseCopyable}}
|