mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If a function is being semantically treated as having different concurrency annotations because of a `@preconcurrency` import or language mode setting, then SILGen may try to store an argument or result for a call using a value that differs only in concurrency annotations, which can be safely bitcast away. Fixes rdar://154520999
9 lines
225 B
Swift
9 lines
225 B
Swift
// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/preconcurrency-bridged-return.h -swift-version 5 %s
|
|
//
|
|
// REQUIRES: objc_interop
|
|
|
|
func test(x: TestClass) {
|
|
let foo = x.foo()
|
|
}
|
|
|