Skip to content

Commit fb5d180

Browse files
committed
RequirementMachine: Superclass and concrete type symbols should not contain type variables
1 parent 7adfd86 commit fb5d180

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/RequirementMachine/Symbol.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ struct Symbol::Storage final
8787
Storage(Symbol::Kind kind, CanType type, ArrayRef<Term> substitutions) {
8888
assert(kind == Symbol::Kind::Superclass ||
8989
kind == Symbol::Kind::ConcreteType);
90+
assert(!type->hasTypeVariable());
9091
assert(type->hasTypeParameter() != substitutions.empty());
9192

9293
Kind = unsigned(kind);

0 commit comments

Comments
 (0)