[SR-11318] Incorrect "Case will never be executed" warning #53719
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
pattern matching
Feature: pattern matching
patterns
Feature: patterns
SILGen
Area → compiler: The SIL generation stage
statements
Feature: statements
swift 5.9
switch cases
Feature → statements → switch: 'switch' statement cases
switch
Feature → statements: 'switch' statements
Environment
Xcode 10.3, Mojave 10.14.6
Additional Detail from JIRA
md5: 938fad3f74db69692d9fbd5816890e38
Issue Description:
The following switch statement always shows "case will never be executed" (twice on the same line), even though it will get executed.
touches
is of typeSet<UITouch>
.The text was updated successfully, but these errors were encountered: