Skip to content

Commit 0efd4df

Browse files
committed
help
1 parent 11aaebc commit 0efd4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6631,7 +6631,7 @@ void AttributeChecker::visitSendableAttr(SendableAttr *attr) {
66316631
if (auto *funcDecl = dyn_cast<AbstractFunctionDecl>(D)) {
66326632
if (auto selfdecl = funcDecl->getImplicitSelfDecl()) {
66336633
if (!isSendableType(dc->getParentModule(), selfdecl->getTypeInContext())) {
6634-
diagnoseAndRemoveAttr(attr, diag::nonsendable_instance_method)
6634+
diagnose(attr, diag::nonsendable_instance_method)
66356635
.warnUntilSwiftVersion(6);
66366636
}
66376637
}

0 commit comments

Comments
 (0)