Skip to content

Commit 0274f6b

Browse files
committed
auto
1 parent 10a4c8b commit 0274f6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/AST/Decl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5703,6 +5703,9 @@ class VarDecl : public AbstractStorageDecl {
57035703
/// For \c ParamDecl instances, using \c isImmutable is preferred.
57045704
bool isLet() const;
57055705

5706+
/// Is this a mutable 'inout' property.
5707+
bool isInOut() const { return getIntroducer() == VarDecl::Introducer::InOut; }
5708+
57065709
/// Is this an "async let" property?
57075710
bool isAsyncLet() const;
57085711

0 commit comments

Comments
 (0)