Skip to content

Commit 86687b5

Browse files
committed
[nfc] Eliminate never written to variable warning from a test.
1 parent 9206c7b commit 86687b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Concurrency/sendnonsendable_region_based_sendability.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ func test_class_assign_merges(a : A, b : Bool) async {
444444
let ns0 = NonSendable()
445445
let ns1 = NonSendable()
446446

447-
//this should merge ns0 and ns1
448-
//TODO: check out the warning here more
449-
var box = ClassBox() // expected-warning {{}}
447+
// This should merge ns0 and ns1.
448+
var box = ClassBox()
449+
box = ClassBox()
450450
box.contents = ns0
451451
box.contents = ns1
452452

0 commit comments

Comments
 (0)