diff --git a/tests/source/macro_rules.rs b/tests/source/macro_rules.rs index 51c80ad5b7d..5ed5f905883 100644 --- a/tests/source/macro_rules.rs +++ b/tests/source/macro_rules.rs @@ -194,3 +194,13 @@ macro_rules! m { ($x:) => {}; ($($foo:expr)()?) => {}; } + +// #2749 +macro_rules! foo { + ($(x)* {}) => {}; + ($(x)* ()) => {}; + ($(x)* []) => {}; +} +macro_rules! __wundergraph_expand_sqlite_mutation { + ( $mutation_name:ident $((context = $($context:tt)*))*{ $( $entity_name:ident( $(insert = $insert:ident,)* $(update = $update:ident,)* $(delete = $($delete:tt)+)* ), )* } ) => {}; +} diff --git a/tests/target/macro_rules.rs b/tests/target/macro_rules.rs index 451e78cb3a8..c366d75cf91 100644 --- a/tests/target/macro_rules.rs +++ b/tests/target/macro_rules.rs @@ -226,3 +226,23 @@ macro_rules! m { ($x:) => {}; ($($foo:expr)()?) => {}; } + +// #2749 +macro_rules! foo { + ($(x)* {}) => {}; + ($(x)*()) => {}; + ($(x)*[]) => {}; +} +macro_rules! __wundergraph_expand_sqlite_mutation { + ( + $mutation_name:ident $((context = $($context:tt)*))* { + $( + $entity_name:ident( + $(insert = $insert:ident,)* + $(update = $update:ident,)* + $(delete = $($delete:tt)+)* + ), + )* + } + ) => {}; +}