Switch expression results cannot be assigned to self
.
#66489
Labels
assignments
Feature → expressions: assignments
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
expressions
Feature: expressions
swift 5.9
switch
Feature → statements: 'switch' statements
type checker
Area → compiler: Semantic analysis
unexpected error
Bug: Unexpected error
Compiles:
Does not compile:
Wrapping in a closure is a solution:
The text was updated successfully, but these errors were encountered: