Sema: Call setValidationStarted() on various synthesized FuncDecls

This commit is contained in:
Slava Pestov
2018-03-21 22:29:51 -07:00
parent 9488ef3d3d
commit a8602f8eb8
6 changed files with 10 additions and 0 deletions

View File

@@ -181,6 +181,7 @@ static ValueDecl *deriveInitDecl(TypeChecker &tc, Decl *parentDecl,
initDecl->setInterfaceType(allocIfaceType);
initDecl->setInitializerInterfaceType(initIfaceType);
initDecl->setAccess(enumDecl->getFormalAccess());
initDecl->setValidationStarted();
// If the enum was not imported, the derived conformance is either from the
// enum itself or an extension, in which case we will emit the declaration