[SR-13593] Error message talks about extensions, but I haven't written any extensions #56028
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
type checker
Area → compiler: Semantic analysis
Environment
Xcode Version 12.0 (12A7209)
Additional Detail from JIRA
md5: 56c24f364de73d1f9030ad4dcd4dcb23
Issue Description:
I've read on other webpages why this isn't allowed:
But what's strange here is not that compilation fails, but the error message it gives: "Overriding declarations in extensions is not supported". That's wrong, right? I mean, maybe it's technically a true statement, but I didn't write an extension here, so it's not the reason this particular class failed to compile.
I think most of the confusion around this limitation could be avoided if the error message more accurately described the situation.
The text was updated successfully, but these errors were encountered: