-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationgood first issueGood for newcomersGood for newcomersimprovement
Description
| Previous ID | SR-3359 |
| Radar | None |
| Original Reporter | aaroncrespo (JIRA User) |
| Type | Improvement |
| Status | Resolved |
| Resolution | Done |
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Improvement, DiagnosticsQoI, StarterBug |
| Assignee | matthew carroll (JIRA) |
| Priority | Medium |
md5: b2778488745a5fbb25973db793f3d89c
Issue Description:
Noticed that:
@discardableResult func foo() {
print("hello")
}
foo()Didn't raise a warning or error when compiled. My thoughts are that it should?
Metadata
Metadata
Assignees
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationgood first issueGood for newcomersGood for newcomersimprovement