Skip to content

Commit 1abd15b

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 b034c48 commit 1abd15b

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
@@ -1410,6 +1410,8 @@ void ConstraintSystem::print(raw_ostream &out) const {
14101410
out << " [inout allowed]";
14111411
if (tv->getImpl().canBindToNoEscape())
14121412
out << " [noescape allowed]";
1413+
if (tv->getImpl().canBindToHole())
1414+
out << " [hole allowed]";
14131415
auto rep = getRepresentative(tv);
14141416
if (rep == tv) {
14151417
if (auto fixed = getFixedType(tv)) {

0 commit comments

Comments
 (0)