mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
399 B
Swift
13 lines
399 B
Swift
// RUN: %target-typecheck-verify-swift -disable-availability-checking
|
|
|
|
class KlassModern: ~Copyable {} // expected-error {{classes cannot be '~Copyable'}}
|
|
|
|
actor FamousPerson: ~Copyable {} // expected-error{{actors cannot be '~Copyable'}}
|
|
|
|
class Konditional<T: ~Copyable> {}
|
|
|
|
func checks<T: ~Copyable, C>(
|
|
_ b: KlassModern,
|
|
_ c: Konditional<T>,
|
|
_ d: Konditional<C>) {}
|