mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
With `ARCMigrate` and `arcmt-test` removed from clang in https://github.com/llvm/llvm-project/pull/119269 and the new code migration experience under way (see https://github.com/swiftlang/swift-evolution/pull/2673), these options are no longer relevant nor known to be in use. They were introduced long ago to support fix-it application in Xcode. For now, turn them into a no-op and emit a obsoletion warning. (cherry picked from commit 46c394788a84d5932289c71274dd32ea2d61d9dc)
19 lines
593 B
Swift
19 lines
593 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
do {
|
|
func takeInt32(_: Int32) {}
|
|
|
|
func f1(_ cint: CInt) {
|
|
takeInt32(UInt(cint))
|
|
// expected-error@-1:15 {{cannot convert value of type 'UInt' to expected argument type 'Int32'}}{{15-15=Int32(}}{{25-25=)}}
|
|
}
|
|
func f2(_ uint: UInt) {
|
|
takeInt32(uint)
|
|
// expected-error@-1:15 {{cannot convert value of type 'UInt' to expected argument type 'Int32'}}{{15-15=Int32(}}{{19-19=)}}
|
|
|
|
let int32: Int32 = uint
|
|
// expected-error@-1:24 {{cannot convert value of type 'UInt' to specified type 'Int32'}}{{24-24=Int32(}}{{28-28=)}}
|
|
}
|
|
}
|
|
|