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 c12e31f commit 43a0982Copy full SHA for 43a0982
include/swift/AST/Types.h
@@ -1996,7 +1996,7 @@ class ParameterTypeFlags {
1996
1997
ParameterTypeFlags withCompileTimeConst(bool isConst) const {
1998
return ParameterTypeFlags(isConst ? value | ParameterTypeFlags::CompileTimeConst
1999
- : value | ParameterTypeFlags::CompileTimeConst);
+ : value - ParameterTypeFlags::CompileTimeConst);
2000
}
2001
2002
ParameterTypeFlags withShared(bool isShared) const {
0 commit comments