Fix lexer throwing errors when parsing a too large tuple index.

This commit is contained in:
KtorZ
2023-03-18 16:12:45 +01:00
parent df722d6f0f
commit 8a2af4cd2e
5 changed files with 33 additions and 15 deletions

View File

@@ -1864,6 +1864,15 @@ fn parse_tuple2() {
);
}
#[test]
fn large_integer_constants() {
let code = indoc! {r#"
pub const my_big_int = 999999999999999999999999
"#};
assert_definitions(code, vec![])
}
#[test]
fn plain_bytearray_literals() {
let code = indoc! {r#"