mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] Re-introduce some assertions
These FIXMEs appear to now be outdated. This commit also adds an additional assertion in `bindTypeVariable`.
This commit is contained in:
@@ -428,6 +428,9 @@ void ConstraintGraph::mergeNodes(TypeVariableType *typeVar1,
|
||||
}
|
||||
|
||||
void ConstraintGraph::bindTypeVariable(TypeVariableType *typeVar, Type fixed) {
|
||||
assert(!fixed->is<TypeVariableType>() &&
|
||||
"Cannot bind to type variable; merge equivalence classes instead");
|
||||
|
||||
// If there are no type variables in the fixed type, there's nothing to do.
|
||||
if (!fixed->hasTypeVariable())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user