blob: 017c16909b1dbb80d3edb4f5b32ef187814b02bb [file] [log] [blame]
// REQUIRES: objc_interop
// RUN: %empty-directory(%t.mod) && %target-swift-frontend -emit-module -o %t.mod/Cities.swiftmodule %S/Inputs/Cities.swift -module-name Cities -parse-as-library
// RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s %S/Inputs/rename_cross_file_2.swift -F %S/mock-sdk -I %t.mod -api-diff-data-file %S/Inputs/API.json -emit-migrated-file-path %t/rename_cross_file.swift.result -emit-remap-file-path %t/rename_cross_file.swift.remap -o /dev/null
// RUN: diff -u %S/rename_cross_file.swift.expected %t/rename_cross_file.swift.result
import Cities
extension FontWeighting {
init(x: Int, y: Int) { fatalError() }
init(x: Int, y: Int, _ z: Int) { fatalError() }
}
func foo() {
_ = FontWeighting(rawValue: 1)
_ = FontWeighting(string: "light")
_ = FontWeighting(x: 2, y: 2, z: 2)
_ = FontWeighting(x: 2, 2)
}