mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Type Checker] Add a request kind for ‘dynamic’.
Separate out the semantic state for the ‘dynamic’ check (from the presence of the attribute), and move all of the computation of the ‘dynamic’ bit into the request-evaluator. In the process, this fixes a bug where implicitly-synthesized initializers in subclasses of imported classes would not be implicitly made ‘final’.
This commit is contained in:
@@ -2396,8 +2396,6 @@ static void configureDesignatedInitAttributes(TypeChecker &tc,
|
||||
|
||||
if (superclassCtor->isRequired())
|
||||
ctor->getAttrs().add(new (ctx) RequiredAttr(/*IsImplicit=*/true));
|
||||
if (superclassCtor->isDynamic())
|
||||
ctor->getAttrs().add(new (ctx) DynamicAttr(/*IsImplicit*/true));
|
||||
}
|
||||
|
||||
ConstructorDecl *
|
||||
|
||||
Reference in New Issue
Block a user