Skip to content

Commit b265541

Browse files
committed
[NFC] Document the new type variable merging heuristic in addJoinConstraint
1 parent cd44ca8 commit b265541

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,6 +3096,11 @@ class ConstraintSystem {
30963096
/// a new type variable or a specified supertype. At some point, we may want
30973097
/// a new constraint kind to cover the join.
30983098
///
3099+
/// \note This method will merge any input type variables for atomic literal
3100+
/// expressions of the same kind. It assumes that if same-kind literal type
3101+
/// variables are joined, there will be no differing constraints on those
3102+
/// type variables.
3103+
///
30993104
/// \returns the joined type, which is generally a new type variable, unless there are
31003105
/// fewer than 2 input types or the \c supertype parameter is specified.
31013106
template<typename Iterator>

0 commit comments

Comments
 (0)