swiftlang/swift
Vedi su GitHubNo fix-it for missing type annotation in computed property
Open
#87.324 aperta il 18 feb 2026
compilerdiagnostics qualityfix-itsgood first issuelet & varswift 6.3type checker
Metriche repository
- Star
- (69.989 star)
- Metriche merge PR
- (Merge medio 7g 6h) (556 PR mergiate in 30 g)
Descrizione
Description
No response
Reproduction
func foo() {
var int {}
}
error: computed property must have an explicit type [computed_property_missing_type]
91 |
92 | func foo() {
93 | var int {}
| `- error: computed property must have an explicit type [computed_property_missing_type]
94 | }
95 |
Expected behavior
Insertion fix-it for the annotation with a type placeholder.
Environment
Swift version 6.3-dev (fddce85428f14f8)
Additional information
No response