mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
20 lines
429 B
Swift
20 lines
429 B
Swift
// This tests whether we accept fixits from warnings without filtering.
|
|
// The particular diagnostics used are not important.
|
|
|
|
// RUN: %swift -parse -target %target-triple %s -fixit-all -emit-fixits-path %t.remap
|
|
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %s.result
|
|
|
|
func ftest1() {
|
|
let myvar = 0
|
|
}
|
|
|
|
func foo() -> Int {
|
|
do {
|
|
} catch var err {
|
|
goo(err)
|
|
}
|
|
}
|
|
func goo(_ e: ErrorProtocol) {
|
|
|
|
}
|