Files
swift-mirror/test/Sema/bitwse_copyable_underscore.swift
Nate Chandler acd9b72833 [BitwiseCopyable] Only deprecate underscored.
Rather than immediately outright banning the old protocol, just make it
be a deprecated typealias for the real one.
2024-05-08 16:52:51 -07:00

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}}