mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
remove panic
This commit is contained in:
parent
f6af66f342
commit
63bc923b37
4 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue