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.
1 parent 674e16e commit 133d5a7Copy full SHA for 133d5a7
include/swift/AST/Expr.h
@@ -2162,7 +2162,7 @@ class CollectionExpr : public Expr {
2162
unsigned getNumElements() const { return Elements.size(); }
2163
2164
bool isTypeDefaulted() const { return IsTypeDefaulted; }
2165
- void setIsTypeDefaulted(bool value = true) { IsTypeDefaulted = true; }
+ void setIsTypeDefaulted(bool value = true) { IsTypeDefaulted = value; }
2166
2167
SourceLoc getLBracketLoc() const { return LBracketLoc; }
2168
SourceLoc getRBracketLoc() const { return RBracketLoc; }
0 commit comments