Closed as not planned
Description
Description
When dealing with cast destination type and a <
operator after it, the compiler assumes that the generic arguments list is going to follow the <
and produces an expected type
error.
Steps To Reproduce
Steps to reproduce the behavior:
- Launch Swift.
- Run
let _ = 1 as Int16 < 7
. - Observe the
expected type
error.
Expected behavior
There should be no expected type
error, since <
in this context is not supposed to be followed by a generic arguments list.
Environment
- OS: macOS 12.4
- Xcode Version: 13.4
Additional context
I fixed issue #43053 which addresses similar problem, but with the<<
operator.