[SR-10970] Operators with unrelated precedence incorrectly allowed to be adjacent #53359
Labels
accepts invalid
Bug: Accepts invalid
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Apple Swift version 5.1 (swiftlang-1100.0.212.5 clang-1100.0.28.2)
Target: x86_64-apple-darwin19.0.0
Additional Detail from JIRA
md5: d8463e32d8da4bff72b759edb5963e32
Issue Description:
In the following example we correctly diagnose the fact that we're using two adjacent operators with unrelated precedence:
However if we add another application of
^^
, the code compiles:I believe this should also be diagnosed with the above error.
The text was updated successfully, but these errors were encountered: