Skip to content

Commit a3185cf

Browse files
committed
Merge pull request #2167 from danra/stmt_deleted_assignment
Fix type of deleted Stmt assignment operator
2 parents fadf6b3 + 103ba74 commit a3185cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Stmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ enum class StmtKind {
4444
/// Stmt - Base class for all statements in swift.
4545
class alignas(8) Stmt {
4646
Stmt(const Stmt&) = delete;
47-
void operator=(const Stmt&) = delete;
47+
Stmt& operator=(const Stmt&) = delete;
4848

4949
/// Kind - The subclass of Stmt that this is.
5050
unsigned Kind : 31;

0 commit comments

Comments
 (0)