Sema: Cope with stored properties that haven't been validated yet

This commit is contained in:
Slava Pestov
2019-07-31 17:27:37 -04:00
parent 1124f68dae
commit c68cf85061

View File

@@ -1272,6 +1272,9 @@ SynthesizeAccessorRequest::evaluate(Evaluator &evaluator,
AccessorKind kind) const {
auto &ctx = storage->getASTContext();
if (!storage->hasInterfaceType())
ctx.getLazyResolver()->resolveDeclSignature(storage);
switch (kind) {
case AccessorKind::Get:
return createGetterPrototype(storage, ctx);