You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fc2d325
Browse filesBrowse the repository at this point in the historyBrowse files
Report a non-bool condition of the conditional operator as a type mismatch.
The `filter`, `exists_one` and `map` with a filter macros expand their predicate into the condition of `_?_:_`. When the predicate isn't a bool the type-checker reports `found no matching overload for '_?_:_' applied to ...'`, which points at an operator that doesn't appear in the expression.
Report `expected type 'bool' but found '<type>'` at the condition instead, as is already done for the operands of `&&` and `||`.
PiperOrigin-RevId: 1003153382
0 commit comments