remove panic

This commit is contained in:
Folkert 2020-04-13 22:35:34 +02:00
parent f6af66f342
commit 63bc923b37
4 changed files with 5 additions and 5 deletions

View file

@ -1532,6 +1532,7 @@ fn make_tag_union_recursive<'a>(
let problem = roc_types::types::Problem::CyclicAlias(symbol, region, others.clone());
*typ = Type::Erroneous(problem);
// ensure cyclic error is only reported for one element of the cycle
if *can_report_error {
*can_report_error = false;