mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
237 B
Swift
11 lines
237 B
Swift
// RUN: %target-swift-frontend -typecheck -import-objc-header %S/Inputs/restated-protocol-requirement.h %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
func giveMeAQ(_ q: Q) {
|
|
_ = q.property
|
|
_ = q.method()
|
|
_ = q[q]
|
|
_ = type(of: q).init(foo: q)
|
|
}
|