mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I did this using a sed pattern and verified by hand that I was only touching target-swift-emit-silgen lines.
12 lines
269 B
Swift
12 lines
269 B
Swift
// RUN: %target-swift-emit-silgen -verify -import-objc-header %S/Inputs/objc_bridged_generic_nonnull.h %s
|
|
// REQUIRES: objc_interop
|
|
|
|
public func test<T>(_ x: NonnullMembers<T>) -> T? {
|
|
var z: T?
|
|
z = x.method()
|
|
z = x.property
|
|
z = x.property
|
|
z = x[x]
|
|
_ = z
|
|
}
|