mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Start parsing 'throws' on initializers.
Introduce basic validation for throwing @objc initializers, e.g., a failable @objc initializer cannot also be throwing. However, Objective-C selector computation is broken. Swift SVN r27292
This commit is contained in:
@@ -2124,7 +2124,8 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
|
||||
DeclName name(ctx, ctx.Id_init, argNames);
|
||||
auto ctor = createDecl<ConstructorDecl>(name, SourceLoc(), failability,
|
||||
SourceLoc(), /*bodyParams=*/nullptr,
|
||||
nullptr, genericParams, parent);
|
||||
nullptr, genericParams, SourceLoc(),
|
||||
parent);
|
||||
declOrOffset = ctor;
|
||||
|
||||
if (auto accessLevel = getActualAccessibility(rawAccessLevel)) {
|
||||
|
||||
Reference in New Issue
Block a user