mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
fix tyinfer test
This commit is contained in:
parent
1bbfb9d764
commit
110db353fc
@ -134,7 +134,7 @@ grammar;
|
||||
extern token { type Location = usize; enum Tok { } }
|
||||
A = @L;
|
||||
"#, vec![
|
||||
("A", "::std::option::Option<usize>"),
|
||||
("A", "usize"),
|
||||
])
|
||||
}
|
||||
|
||||
@ -144,11 +144,11 @@ fn test_spanned_macro() {
|
||||
grammar;
|
||||
extern token { type Location = usize; enum Tok { } }
|
||||
A = Spanned<"Foo">;
|
||||
Spanned<T>: (Option<usize>, Option<usize>) = {
|
||||
<@L> T <@R> => (<>);
|
||||
Spanned<T> = {
|
||||
@L T @R;
|
||||
};
|
||||
"#, vec![
|
||||
("A", "(Option<usize>, Option<usize>)"),
|
||||
("A", "(usize, Tok, usize)"),
|
||||
])
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user