Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Dec 3, 2024
1 parent bdb5d2d commit d474ad0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/type_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,12 @@ Expr TypeChecker::getTypeAppInternal(std::vector<ExprValue*>& children,
{
if (out)
{
if (hdtypes[i]->getKind()==Kind::QUOTE_TYPE)
if (hdtypes[i]->getKind() == Kind::QUOTE_TYPE)
{
(*out) << "Unexpected child #" << i << std::endl;
(*out) << " Term: " << Expr(children[i+1]) << std::endl;
(*out) << " Term: " << Expr(children[i + 1]) << std::endl;
(*out) << " Expected pattern: " << Expr(hdt);
if ((*hdtypes[i])[0]!=hdt)
if ((*hdtypes[i])[0] != hdt)
{
(*out) << ", from " << Expr((*hdtypes[i])[0]);
}
Expand All @@ -461,10 +461,10 @@ Expr TypeChecker::getTypeAppInternal(std::vector<ExprValue*>& children,
else
{
(*out) << "Unexpected type of child #" << i << std::endl;
(*out) << " Term: " << Expr(children[i+1]) << std::endl;
(*out) << " Term: " << Expr(children[i + 1]) << std::endl;
(*out) << " Has type: " << Expr(ctypes[i]) << std::endl;
(*out) << " Expected type: " << Expr(hdt);
if (hdtypes[i]!=hdt)
if (hdtypes[i] != hdt)
{
(*out) << ", from " << Expr(hdtypes[i]);
}
Expand Down

0 comments on commit d474ad0

Please sign in to comment.