Fix error while printing record types

This commit is contained in:
Sam Vervaeck 2023-06-02 21:38:06 +02:00
parent af7fcb52b4
commit 3a93952b36
Signed by: samvv
SSH key fingerprint: SHA256:dIg0ywU1OP+ZYifrYxy8c5esO72cIKB+4/9wkZj1VaY

View file

@ -126,6 +126,8 @@ namespace bolt {
return "a match-expression";
case NodeKind::ConstantExpression:
return "a literal expression";
case NodeKind::MemberExpression:
return "an accessor of a member";
case NodeKind::IfStatement:
return "an if-statement";
case NodeKind::IfStatementPart:
@ -636,7 +638,7 @@ namespace bolt {
}
if (Ty2->getKind() != TypeKind::Nil) {
W.write("; ");
visit(Ty);
visit(Ty2);
}
W.write(" }");
for (auto K = 0; K < I; K++) {