Merge pull request #23932 from xymus/IsFinalRequest

Sema: implement `isFinal` using a request evaluator
This commit is contained in:
Alexis Laferrière
2019-04-19 13:02:07 -07:00
committed by GitHub
13 changed files with 195 additions and 89 deletions

View File

@@ -367,10 +367,6 @@ createCoroutineAccessorPrototype(AbstractStorageDecl *storage,
if (isStatic)
accessor->setStatic();
// The accessor is final if the storage is.
if (storage->isFinal())
makeFinal(ctx, accessor);
// If the storage does not provide this accessor as an opaque accessor,
// we can't add a dynamically-dispatched method entry for the accessor,
// so force it to be statically dispatched. ("final" would be inappropriate