mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
667 B
Swift
18 lines
667 B
Swift
// REQUIRES: objc_interop
|
|
// RUN: %empty-directory(%t.mod)
|
|
// RUN: %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 -disable-migrator-fixits -primary-file %s -I %t.mod -api-diff-data-file %S/Inputs/CallExpr.json -emit-migrated-file-path %t/call_expr_result.swift.result -o /dev/null
|
|
// RUN: diff -u %S/call_expr_result.swift.expected %t/call_expr_result.swift.result
|
|
|
|
import Cities
|
|
|
|
func foo() {
|
|
let c1 = Cities(x: 3)
|
|
_ = Cities.init(x: 3)
|
|
_ = c1.noosa()
|
|
_ = c1.name
|
|
bar(c1.name)
|
|
}
|
|
|
|
func bar(_ n: String) {}
|