Skip to content

Commit e148032

Browse files
authored
Merge pull request #35880 from DougGregor/fixup-async-availability-test
2 parents 1c126eb + c8c8f16 commit e148032

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/ClangImporter/objc_async.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func testSlowServer(slowServer: SlowServer) async throws {
4545

4646
slowServer.repeatTrick("jump") // expected-error{{missing argument for parameter 'completionHandler' in call}}
4747

48-
_ = try await slowServer.oldAPI(); // expected-error{{'oldAPI()' is unavailable in macOS: APIs deprecated as of macOS 10.14 and earlier are not imported as 'async'}}
4948
_ = try await slowServer.someAsyncMethod()
5049
}
5150

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules -enable-experimental-concurrency %s -verify
2+
3+
// REQUIRES: objc_interop
4+
// REQUIRES: concurrency
5+
// REQUIRES: OS=macosx
6+
7+
import Foundation
8+
import ObjCConcurrency
9+
10+
func testSlowServer(slowServer: SlowServer) async throws {
11+
_ = try await slowServer.oldAPI(); // expected-error{{'oldAPI()' is unavailable in macOS: APIs deprecated as of macOS 10.14 and earlier are not imported as 'async'}}
12+
}

0 commit comments

Comments
 (0)