mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Updating something to underscored names is hardly correct. This patch disallows picking up such migration scripts.
12 lines
517 B
Plaintext
12 lines
517 B
Plaintext
// REQUIRES: objc_interop
|
|
// RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -api-diff-data-file %S/Inputs/API.json -emit-migrated-file-path %t/member.swift.result -emit-remap-file-path %t/member.swift.remap -o /dev/null
|
|
// RUN: diff -u %S/member.swift.expected %t/member.swift.result
|
|
|
|
import Bar
|
|
|
|
func foo(_ b: BarForwardDeclaredClass, _ s: SomeItemSet) -> Int32 {
|
|
let _ = s.theSimpleNewName
|
|
let _ = s.theSimpleOldNameNotToRename
|
|
return bar.memberVariable
|
|
}
|