// RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test protocol P { init() func f() } class C: P { required init() {} func f() { print("C.f") } } struct G { func f() { T().f() } } G().f() // CHECK: C.f do { let v1 = (any C & Sendable).self let v2 = C.self print(v1) // CHECK: C print(v2) // CHECK: C print(v1 == v2) // CHECK: true } @_marker protocol Marker { } do { print(G.self) // CHECK: G class D { } print((D & Sendable).self) // CHECK: D print((D & Sendable).self) // CHECK: D print((any Marker & Sendable).self) // CHECK: Any print((AnyObject & Sendable & Marker).self) // CHECK: AnyObject func generic(_: T.Type) { print((D & Sendable).self) } generic(Int.self) // CHECK: D }