mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Make sure to bump index of nullable-wrapped tag indices after null variants
Fixes a bug in ref-counting.
This commit is contained in:
parent
ba2527a020
commit
066bc7d953
2 changed files with 50 additions and 12 deletions
|
@ -2186,10 +2186,13 @@ fn nullable_wrapped_with_nullable_not_last_index() {
|
|||
Keyword _ -> "b"
|
||||
CharLiteral -> "c"
|
||||
|
||||
main = toIdParser CharLiteral
|
||||
main =
|
||||
toIdParser (OneOrMore CharLiteral)
|
||||
|> Str.concat (toIdParser (Keyword "try"))
|
||||
|> Str.concat (toIdParser CharLiteral)
|
||||
"#
|
||||
),
|
||||
RocStr::from("c"),
|
||||
RocStr::from("abc"),
|
||||
RocStr
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue