mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
fix missing effects specifiers on eff props in swiftinterface
I missed the case where the body is also being printed in the interface file.
This commit is contained in:
@@ -3490,6 +3490,10 @@ void PrintAST::visitAccessorDecl(AccessorDecl *decl) {
|
||||
});
|
||||
}
|
||||
|
||||
// handle effects specifiers before the body
|
||||
if (decl->hasAsync()) Printer << " async";
|
||||
if (decl->hasThrows()) Printer << " throws";
|
||||
|
||||
printBodyIfNecessary(decl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user