Unexpected compiler diagnostics when checking async
Bool
s with Swift Testing’s #expect
#81765
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
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.Reproduction
Expected behavior
The plain
isEnabled
checks produce the same (correct) diagnostics as theisEnabled == true
expressions.Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: