@@ -384,8 +384,7 @@ func testConvertBool() async throws {
384
384
// OPT-BOOL-WITH-ERR-NEXT: print("g \(err)")
385
385
// OPT-BOOL-WITH-ERR-NEXT: }
386
386
387
- // We cannot use refactor-check-compiles, as a placeholder cannot be force unwrapped.
388
- // RUN: %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3 -I %S/Inputs -I %t -target %target-triple %clang-importer-sdk-nosource | %FileCheck -check-prefix=OBJC-BOOL-WITH-ERR %s
387
+ // RUN: %refactor-check-compiles -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3 -I %S/Inputs -I %t -target %target-triple %clang-importer-sdk-nosource | %FileCheck -check-prefix=OBJC-BOOL-WITH-ERR %s
389
388
ClassWithHandlerMethods . firstBoolFlagSuccess ( " " ) { str, success, unrelated, err in
390
389
if !unrelated {
391
390
print ( err!)
@@ -405,7 +404,7 @@ func testConvertBool() async throws {
405
404
}
406
405
407
406
// OBJC-BOOL-WITH-ERR: do {
408
- // OBJC-BOOL-WITH-ERR-NEXT: let (str, success, unrelated) = try await ClassWithHandlerMethods.firstBoolFlagSuccess("")
407
+ // OBJC-BOOL-WITH-ERR-NEXT: let (str, unrelated) = try await ClassWithHandlerMethods.firstBoolFlagSuccess("")
409
408
// OBJC-BOOL-WITH-ERR-NEXT: if !unrelated {
410
409
// OBJC-BOOL-WITH-ERR-NEXT: print(<#err#>!)
411
410
// OBJC-BOOL-WITH-ERR-NEXT: }
@@ -416,8 +415,7 @@ func testConvertBool() async throws {
416
415
// OBJC-BOOL-WITH-ERR-NEXT: print(err)
417
416
// OBJC-BOOL-WITH-ERR-NEXT: }
418
417
419
- // We cannot use refactor-check-compiles, as a placeholder cannot be force unwrapped.
420
- // RUN: %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3 -I %S/Inputs -I %t -target %target-triple %clang-importer-sdk-nosource | %FileCheck -check-prefix=OBJC-BOOL-WITH-ERR2 %s
418
+ // RUN: %refactor-check-compiles -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3 -I %S/Inputs -I %t -target %target-triple %clang-importer-sdk-nosource | %FileCheck -check-prefix=OBJC-BOOL-WITH-ERR2 %s
421
419
ClassWithHandlerMethods . secondBoolFlagFailure ( " " ) { str, unrelated, failure, err in
422
420
if unrelated {
423
421
print ( err!)
@@ -446,13 +444,13 @@ func testConvertBool() async throws {
446
444
}
447
445
448
446
// OBJC-BOOL-WITH-ERR2: do {
449
- // OBJC-BOOL-WITH-ERR2-NEXT: let (str, unrelated, failure ) = try await ClassWithHandlerMethods.secondBoolFlagFailure("")
447
+ // OBJC-BOOL-WITH-ERR2-NEXT: let (str, unrelated) = try await ClassWithHandlerMethods.secondBoolFlagFailure("")
450
448
// OBJC-BOOL-WITH-ERR2-NEXT: if unrelated {
451
449
// OBJC-BOOL-WITH-ERR2-NEXT: print(<#err#>!)
452
450
// OBJC-BOOL-WITH-ERR2-NEXT: }
453
451
// OBJC-BOOL-WITH-ERR2-NEXT: print("woo")
454
452
// OBJC-BOOL-WITH-ERR2-NEXT: print("also woo")
455
- // OBJC-BOOL-WITH-ERR2-NEXT: if failure && <#err#> == nil {
453
+ // OBJC-BOOL-WITH-ERR2-NEXT: if <# failure#> && <#err#> == nil {
456
454
// OBJC-BOOL-WITH-ERR2-NEXT: print("wat")
457
455
// OBJC-BOOL-WITH-ERR2-NEXT: }
458
456
// OBJC-BOOL-WITH-ERR2-NEXT: } catch let err {
0 commit comments