Skip to content

Commit 3eb43cf

Browse files
committed
Sema: Banish GenericTypeParamType from the constraint system
1 parent f77ef00 commit 3eb43cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/Constraint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Constraint::Constraint(ConstraintKind kind, ArrayRef<Constraint *> constraints,
4848
}
4949

5050
static bool isAdmissibleType(Type type) {
51-
return !type->hasUnboundGenericType();
51+
return !type->hasUnboundGenericType() && !type->hasTypeParameter();
5252
}
5353

5454
Constraint::Constraint(ConstraintKind Kind, Type First, Type Second,

0 commit comments

Comments
 (0)