Commit 1b053ec0 by XFPlus Committed by Tianqi Chen

Fix typo in err msg (#4251)

parent 008aa838
...@@ -315,7 +315,7 @@ class TypeInferencer : private ExprFunctor<Type(const Expr&)>, ...@@ -315,7 +315,7 @@ class TypeInferencer : private ExprFunctor<Type(const Expr&)>,
ss << "match expression does not handle the following cases: "; ss << "match expression does not handle the following cases: ";
int i = 0; int i = 0;
for (auto cs : unmatched_cases) { for (auto cs : unmatched_cases) {
ss << "case " << i << ": \n" << PrettyPrint(cs); ss << "case " << i++ << ": \n" << PrettyPrint(cs);
} }
this->ReportFatalError( this->ReportFatalError(
match, match,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment