[Test] Add @escaping to async refactoring tests

The async refactorings ignore whether a completion handler had
`@escaping` or not. In preparation of fixing this, fix up all functions
to have `@escaping` for their completion handler parameter.

Also some small miscellaneous fixes in order to reduce the number of
warnings output on test failures and also the addition of `REQUIRES:
concurrency` on all tests.
This commit is contained in:
Ben Barham
2021-07-13 16:12:09 +10:00
parent 35aa862e1d
commit fabb02100f
19 changed files with 271 additions and 228 deletions

View File

@@ -116,7 +116,7 @@ HasInitWithDefaultArgs(y: 45, z: 89)
func `hasBackticks`(`x`: Int) {}
`hasBackticks`(`x`:2)
func hasAsyncAlternative(completion: (String?, Error?) -> Void) { }
func hasAsyncAlternative(completion: @escaping (String?, Error?) -> Void) { }
func hasCallToAsyncAlternative() {
hasAsyncAlternative { str, err in print(str!) }
}