Unexpected compiler diagnostics when checking async
Bool
s with Swift Testing’s #expect
#1128
Labels
bug
🪲 Something isn't working
Description
When Swift Testing’s
#expect
macro is used to check actors’Bool
values (accessed asynchronously), seemingly equivalent expressions (isEnabled
vs.isEnabled == true
) result in unexpected—inconsistent, misleading, or missing—compiler diagnostics.Reported in swiftlang/swift#81765.
Reproduction
Expected behavior
The plain
isEnabled
checks produce the same (correct) diagnostics as theisEnabled == true
expressions.Environment
Additional information
This issue is also reported in the Swift compiler repo: swiftlang/swift#81765.
The text was updated successfully, but these errors were encountered: