[SR-10046] Decodable/Encodable synthesis for unavailable property produces location-less diagnostic #52449
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Codable
Area → standard library: `Codable` and co.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.0-dev (LLVM 8d1b92b83c, Swift e3bea40079)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: a88da86a349fbfc6057ebd774b438c86
Issue Description:
For the following code:
we currently produce the location-less diagnostic:
The same also applies to Encodable.
Either we should refuse to synthesise a conformance or we should ignore the availability of
i
within the synthesised body (like we do for the memberwise initialiser, as we emit its body in SILGen).The text was updated successfully, but these errors were encountered: