Open
Description
Previous ID | SR-15176 |
Radar | rdar://28337871 |
Original Reporter | @CodaFi |
Type | Improvement |
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Improvement, DiagnosticsQoI, StarterBug |
Assignee | jiaren wang (JIRA) |
Priority | Medium |
md5: b17661d61829d04b65f822d78b07388a
Issue Description:
Consider
class C {
var canBecomeFirstResponder: Bool
init() {}
}
class D: C {
override func canBecomeFirstResponder() -> Bool {
}
}
We should add a special case to diagnoseGeneralOverrideFailure
that tries to see if it can correct no-args FuncDecls to VarDecls and vice-versa.