[SR-4644] Create an expression for checking enum cases #47221
Labels
compiler
The Swift compiler in itself
expressions
Feature: expressions
feature
A feature request or implementation
pattern matching
Feature: pattern matching
swift evolution proposal needed
Flag → feature: A feature that warrants a Swift evolution proposal
Additional Detail from JIRA
md5: 1f2f541a6eed36e3084232a2f9ea2ef1
duplicates:
is duplicated by:
Issue Description:
Currently, we can use a (syntactically) special condition for checking if a value belongs to a certain enum case:
The text was updated successfully, but these errors were encountered: