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.
2 parents bd112ca + dd4fea1 commit 5a966b8Copy full SHA for 5a966b8
include/swift/AST/Types.h
@@ -2023,7 +2023,7 @@ class ParameterTypeFlags {
2023
2024
ParameterTypeFlags withCompileTimeConst(bool isConst) const {
2025
return ParameterTypeFlags(isConst ? value | ParameterTypeFlags::CompileTimeConst
2026
- : value | ParameterTypeFlags::CompileTimeConst);
+ : value - ParameterTypeFlags::CompileTimeConst);
2027
}
2028
2029
ParameterTypeFlags withShared(bool isShared) const {
0 commit comments