mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Assert if we attempt to bind a type involving ErrorType.
This commit is contained in:
committed by
Robert Widmann
parent
e3bb2bef64
commit
e83131da30
@@ -128,6 +128,8 @@ bool ConstraintSystem::typeVarOccursInType(TypeVariableType *typeVar,
|
|||||||
|
|
||||||
void ConstraintSystem::assignFixedType(TypeVariableType *typeVar, Type type,
|
void ConstraintSystem::assignFixedType(TypeVariableType *typeVar, Type type,
|
||||||
bool updateState) {
|
bool updateState) {
|
||||||
|
assert(!type->hasError() &&
|
||||||
|
"Should not be assigning a type involving ErrorType!");
|
||||||
|
|
||||||
typeVar->getImpl().assignFixedType(type, getSavedBindings());
|
typeVar->getImpl().assignFixedType(type, getSavedBindings());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user