mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Update to use new square brace formatting
This commit is contained in:
parent
0fae5b0bac
commit
4eec34becf
120 changed files with 1149 additions and 1155 deletions
|
@ -2751,12 +2751,12 @@ fn adjust_rank_content(
|
|||
// Normally this is not a problem because of the loop below that maximizes the
|
||||
// rank from nested types in the union. But suppose we have the simple tag
|
||||
// union
|
||||
// [ Z ]{}
|
||||
// [Z]{}
|
||||
// there are no nested types in the tags, and the empty tag union is at rank 0,
|
||||
// so we promote the tag union to rank 0. Now if we introduce the presence
|
||||
// constraint
|
||||
// [ Z ]{} += [ S a ]
|
||||
// we'll wind up with [ Z, S a ]{}, but it will be at rank 0, and "a" will get
|
||||
// [Z]{} += [S a]
|
||||
// we'll wind up with [Z, S a]{}, but it will be at rank 0, and "a" will get
|
||||
// over-generalized. Really, the empty tag union should be introduced at
|
||||
// whatever current group rank we're at, and so that's how we encode it here.
|
||||
if *ext_var == Variable::EMPTY_TAG_UNION && rank.is_none() {
|
||||
|
@ -2798,7 +2798,7 @@ fn adjust_rank_content(
|
|||
// For example, see the `recursion_var_specialization_error` reporting test -
|
||||
// there, we have
|
||||
//
|
||||
// Job a : [ Job (List (Job a)) a ]
|
||||
// Job a : [Job (List (Job a)) a]
|
||||
//
|
||||
// job : Job Str
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue