Skip to content

Commit 034dd41

Browse files
committed
Add regression test
1 parent 624ee23 commit 034dd41

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

crates/hir_ty/src/tests/regression.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,3 +1198,26 @@ fn bar() {
11981198
"#,
11991199
)
12001200
}
1201+
1202+
#[test]
1203+
fn nested_macro_in_fn_params() {
1204+
check_no_mismatches(
1205+
r#"
1206+
macro_rules! U32Inner {
1207+
() => {
1208+
u32
1209+
};
1210+
}
1211+
1212+
macro_rules! U32 {
1213+
() => {
1214+
U32Inner!()
1215+
};
1216+
}
1217+
1218+
fn mamba(a: U32!(), p: u32) -> u32 {
1219+
a
1220+
}
1221+
"#,
1222+
)
1223+
}

0 commit comments

Comments
 (0)