mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
20 lines
945 B
Swift
20 lines
945 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/rename.swift.result -emit-remap-file-path %t/rename.swift.remap
|
|
// RUN: diff -u %S/rename.swift.expected %t/rename.swift.result
|
|
|
|
import Bar
|
|
|
|
func foo(_ b: BarForwardDeclaredClass) {
|
|
b.barInstanceFunc1(_: 0, anotherValue: 1, anotherValue1: 2, anotherValue2: 3)
|
|
barGlobalFuncOldName(2)
|
|
b.barInstanceFunc1(_: 0, anotherValue: 1, anotherValue1: 2, anotherValue2: 3)
|
|
barGlobalFuncOldName(2)
|
|
b.barInstanceFunc1(_: 0, anotherValue: 1, anotherValue1: 2, anotherValue2: 3)
|
|
barGlobalFuncOldName(2)
|
|
b.barInstanceFunc1(_: 0, anotherValue: 1, anotherValue1: 2, anotherValue2: 3)
|
|
barGlobalFuncOldName(2)
|
|
b.barInstanceFunc1(_: 0, anotherValue: 1, anotherValue1: 2, anotherValue2: 3)
|
|
barGlobalFuncOldName(2)
|
|
_ = barGlobalVariableOldEnumElement
|
|
}
|