mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #11045 from itaiferber/codable-class-fixes
Codable Class Fixes
This commit is contained in:
@@ -407,8 +407,9 @@ static bool canSynthesizeCodingKey(TypeChecker &tc, Decl *parentDecl,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!enumDecl->getInherited().empty() &&
|
||||
enumDecl->getInherited().front().isError())
|
||||
auto inherited = enumDecl->getInherited();
|
||||
if (!inherited.empty() && inherited.front().wasValidated() &&
|
||||
inherited.front().isError())
|
||||
return false;
|
||||
|
||||
// If it meets all of those requirements, we can synthesize CodingKey
|
||||
|
||||
Reference in New Issue
Block a user