Files
swift-mirror/test/Migrator/member.swift
Xi Ge 82a2c2c644 migrator: ignore migration scripts with underscored new names. rdar://39877447
Updating something to underscored names is hardly correct. This patch
disallows picking up such migration scripts.
2018-05-01 16:06:06 -07:00

12 lines
516 B
Swift

// 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.theSimpleOldName
let _ = s.theSimpleOldNameNotToRename
return barGlobalVariable
}