mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
460 B
Swift
11 lines
460 B
Swift
// REQUIRES: objc_interop
|
|
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -api-diff-data-file %S/API.json -emit-migrated-file-path %t/member.swift.result -emit-remap-file-path %t/member.swift.remap
|
|
// RUN: diff -u %S/member.swift.expected %t/member.swift.result
|
|
|
|
import Bar
|
|
|
|
func foo(_ b: BarForwardDeclaredClass, _ s: SomeItemSet) -> Int32 {
|
|
let _ = s.theSimpleOldName
|
|
return barGlobalVariable
|
|
}
|