mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #11045 from itaiferber/codable-class-fixes
Codable Class Fixes
This commit is contained in:
@@ -343,8 +343,9 @@ static bool canSynthesizeRawRepresentable(TypeChecker &tc, Decl *parentDecl,
|
||||
auto parentDC = cast<DeclContext>(parentDecl);
|
||||
rawType = parentDC->mapTypeIntoContext(rawType);
|
||||
|
||||
if (!enumDecl->getInherited().empty() &&
|
||||
enumDecl->getInherited().front().isError())
|
||||
auto inherited = enumDecl->getInherited();
|
||||
if (!inherited.empty() && inherited.front().wasValidated() &&
|
||||
inherited.front().isError())
|
||||
return false;
|
||||
|
||||
// The raw type must be Equatable, so that we have a suitable ~= for
|
||||
|
||||
Reference in New Issue
Block a user