Make sure to bump index of nullable-wrapped tag indices after null variants

Fixes a bug in ref-counting.
This commit is contained in:
Ayaz Hafiz 2023-01-10 10:01:50 -06:00
parent ba2527a020
commit 066bc7d953
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 50 additions and 12 deletions

View file

@ -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
);
}