Skip to content

Commit 11a9b14

Browse files
committed
Update TypeCheckDeclPrimary.cpp
1 parent 2f0750a commit 11a9b14

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lib/Sema/TypeCheckDeclPrimary.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,16 +2662,15 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
26622662
return;
26632663
}
26642664

2665-
auto diagMsg = isProtocolContext ? diag::attr_static_exclusive_no_setters
2666-
: diag::attr_static_exclusive_only_let_only;
2665+
auto diagMsg = isProtocolContext
2666+
? diag::attr_static_exclusive_no_setters
2667+
: diag::attr_static_exclusive_only_let_only;
26672668

26682669
Ctx.Diags.diagnoseWithNotes(
2669-
VD->diagnose(diagMsg,
2670-
VD->getInterfaceType()),
2671-
[&]() {
2672-
SD->diagnose(diag::attr_static_exclusive_only_type_nonmutating,
2673-
SD->getDeclaredInterfaceType());
2674-
});
2670+
VD->diagnose(diagMsg, VD->getInterfaceType()), [&]() {
2671+
SD->diagnose(diag::attr_static_exclusive_only_type_nonmutating,
2672+
SD->getDeclaredInterfaceType());
2673+
});
26752674
}
26762675
}
26772676
}

0 commit comments

Comments
 (0)