Diagnostic for static nonmutating
should be improved
#77835
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
declarations
Feature: declarations
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
mutating
Feature → declarations → functions: Mutating functions
static declarations
Feature → declarations: Static declarations
swift 6.1
type checker
Area → compiler: Semantic analysis
Description
No response
Reproduction
Expected behavior
An example approach to improving this error message is to list both modifiers.
We can also tailor it to call out the modifier in question as it currently does in the case of
mutating
. The drawback of this option is that it conveys less information about language grammar.sEnvironment
Swift version 6.1-dev (26e888e)
Additional information
No response
The text was updated successfully, but these errors were encountered: