mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-omit-needless-words
This commit is contained in:
@@ -2239,13 +2239,12 @@ swift::createDesignatedInitOverride(TypeChecker &tc,
|
||||
ctx);
|
||||
|
||||
// Configure 'self'.
|
||||
GenericParamList *outerGenericParams = nullptr;
|
||||
Type selfType = configureImplicitSelf(tc, ctor, outerGenericParams);
|
||||
Type selfType = configureImplicitSelf(tc, ctor);
|
||||
selfBodyPattern->setType(selfType);
|
||||
cast<TypedPattern>(selfBodyPattern)->getSubPattern()->setType(selfType);
|
||||
|
||||
// Set the type of the initializer.
|
||||
configureConstructorType(ctor, outerGenericParams, selfType,
|
||||
configureConstructorType(ctor, selfType,
|
||||
bodyParamPatterns->getType(),
|
||||
superclassCtor->isBodyThrowing());
|
||||
if (superclassCtor->isObjC()) {
|
||||
|
||||
Reference in New Issue
Block a user