Skip to content

Commit 5a966b8

Browse files
authored
Merge pull request swiftlang#40861 from DougGregor/const-param-bit-manip
2 parents bd112ca + dd4fea1 commit 5a966b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ class ParameterTypeFlags {
20232023

20242024
ParameterTypeFlags withCompileTimeConst(bool isConst) const {
20252025
return ParameterTypeFlags(isConst ? value | ParameterTypeFlags::CompileTimeConst
2026-
: value | ParameterTypeFlags::CompileTimeConst);
2026+
: value - ParameterTypeFlags::CompileTimeConst);
20272027
}
20282028

20292029
ParameterTypeFlags withShared(bool isShared) const {

0 commit comments

Comments
 (0)