mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Designated initializer overrides are fully type-checked
This commit is contained in:
@@ -2146,6 +2146,7 @@ swift::createDesignatedInitOverride(TypeChecker &tc,
|
||||
// Wire up the overrides.
|
||||
ctor->getAttrs().add(new (tc.Context) OverrideAttr(/*IsImplicit=*/true));
|
||||
ctor->setOverriddenDecl(superclassCtor);
|
||||
ctor->setValidationStarted();
|
||||
|
||||
if (kind == DesignatedInitKind::Stub) {
|
||||
// Make this a stub implementation.
|
||||
|
||||
Reference in New Issue
Block a user