[SR-11265] Imperfect error message when using both 'static' and 'class' for a single func #53666
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
good first issue
Good for newcomers
Environment
Apple Swift version 5.1 (swiftlang-1100.0.257.2 clang-1100.0.31.3)
Target: x86_64-apple-darwin18.6.0
Additional Detail from JIRA
md5: 499264e4b5a66e69cbb00c0e4ef2f4b6
Issue Description:
When you accidentally write `static class func` it complains about writing `class` twice, even though you wrote it once. I would've expected something like "impossible for func to be 'static' and 'class' at the same time". Similar error exists with vars
To reproduce:
Will output
The text was updated successfully, but these errors were encountered: