-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementation
Description
| Previous ID | SR-15657 |
| Radar | None |
| Original Reporter | @WowbaggersLiquidLunch |
| Type | Bug |
| Status | Closed |
| Resolution | Done |
Environment
macOS 12.2 Beta (21D5025f)
Swift trunk development snapshot 2021-12-06
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, DiagnosticsQoI |
| Assignee | @LucianoPAlmeida |
| Priority | Medium |
md5: d62063964d822e91a03f84e8d7bf8d49
Issue Description:
2 errors are produced for the following code:
enum E {
// error 1: computed property must have accessors specified
// error 2: enums must not contain stored properties
var foo: Int {}
}Only the error 1 is correct. Error 2 is incorrect.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementation