[SR-8157] Codable type with constant property with random default value #50689
Labels
Codable
Area → standard library: `Codable` and co.
compiler
The Swift compiler in itself
improvement
Additional Detail from JIRA
md5: 2b489ed0466d80215b79b287a0e78e2c
Issue Description:
A constant property - of a Codable type - having a random default value, cannot be assigned the encoded value after decoding. This appears to be expected behavior, however, it maybe the case that we can make this more clear to the developer. Here is a gist explaining this issue:
https://gist.github.com/tinder-garricnahapetian/1e063a42c3fc94f60b5fe2e2a3e9d935
The text was updated successfully, but these errors were encountered: