We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MoveOnly*
1 parent 1356694 commit 1978553Copy full SHA for 1978553
lib/AST/ASTPrinter.cpp
@@ -3114,11 +3114,13 @@ static bool usesFeatureFlowSensitiveConcurrencyCaptures(Decl *decl) {
3114
}
3115
3116
static bool usesFeatureMoveOnly(Decl *decl) {
3117
+ if (auto nominal = dyn_cast<NominalTypeDecl>(decl))
3118
+ return nominal->isMoveOnly();
3119
return false;
3120
3121
3122
static bool usesFeatureMoveOnlyClasses(Decl *decl) {
- return false;
3123
+ return isa<ClassDecl>(decl) && usesFeatureMoveOnly(decl);
3124
3125
3126
static bool usesFeatureOneWayClosureParameters(Decl *decl) {
0 commit comments