Skip to content

Commit 6154ba4

Browse files
committed
[Sema] Print whether a type variable allows binding to a hole
Helped me while debugging and might help others as well.
1 parent b01f3f7 commit 6154ba4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,8 @@ void ConstraintSystem::print(raw_ostream &out) const {
14061406
out << " [inout allowed]";
14071407
if (tv->getImpl().canBindToNoEscape())
14081408
out << " [noescape allowed]";
1409+
if (tv->getImpl().canBindToHole())
1410+
out << " [hole allowed]";
14091411
auto rep = getRepresentative(tv);
14101412
if (rep == tv) {
14111413
if (auto fixed = getFixedType(tv)) {

0 commit comments

Comments
 (0)