Skip to content

Commit 41fd4de

Browse files
committed
[Tests] NFC: Adjust async tests that are affected by performance hacks
1 parent 92147f8 commit 41fd4de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Constraints/async.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ func test_async_calls_in_async_context(v: Int) async {
212212
}
213213

214214
// Only implicit `.init` should be accepted with a warning due type-checker previously picking an incorrect overload.
215-
_ = Test(v) // expected-warning {{expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode}} expected-note {{call is 'async'}}
215+
// FIXME: This should produce a warning once type-checker performance hacks are removed.
216+
_ = Test(v) // Temporary okay
216217
_ = Test.init(v) // expected-error {{expression is 'async' but is not marked with 'await'}} expected-note {{call is 'async'}}
217218

218219
Test.test(v) // expected-error {{expression is 'async' but is not marked with 'await'}} expected-note {{call is 'async'}}
219-
Test(v).test(v) // expected-error {{expression is 'async' but is not marked with 'await'}} expected-note 2 {{call is 'async'}}
220+
Test(v).test(v) // expected-error {{expression is 'async' but is not marked with 'await'}} expected-note {{call is 'async'}}
220221
}

0 commit comments

Comments
 (0)