Skip to content

Commit 31f3a1a

Browse files
author
Amritpan Kaur
committed
[TypeCheckConstraints] Print the generic parameter being referenced by type notation τ_i_i and which concrete type its assigned type variable was opened into.
1 parent 6895b05 commit 31f3a1a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,9 +1357,16 @@ void Solution::dump(raw_ostream &out) const {
13571357
llvm::interleave(
13581358
opened.second.begin(), opened.second.end(),
13591359
[&](OpenedType opened) {
1360+
out << "'";
1361+
opened.second->getImpl().getGenericParameter()->print(out);
1362+
out << "' (";
13601363
Type(opened.first).print(out, PO);
1364+
out << ")";
13611365
out << " -> ";
1366+
out << getFixedType(opened.second);
1367+
out << " [from ";
13621368
Type(opened.second).print(out, PO);
1369+
out << "]";
13631370
},
13641371
[&]() { out << ", "; });
13651372
out << "\n";
@@ -1562,7 +1569,11 @@ void ConstraintSystem::print(raw_ostream &out) const {
15621569
llvm::interleave(
15631570
opened.second.begin(), opened.second.end(),
15641571
[&](OpenedType opened) {
1572+
out << "'";
1573+
opened.second->getImpl().getGenericParameter()->print(out);
1574+
out << "' (";
15651575
Type(opened.first).print(out, PO);
1576+
out << ")";
15661577
out << " -> ";
15671578
Type(opened.second).print(out, PO);
15681579
},

0 commit comments

Comments
 (0)