Skip to content

Commit 35fb113

Browse files
committed
ir: Make type parameters respect constness appropriately.
1 parent 3b68184 commit 35fb113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ir/item.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,8 +1449,8 @@ impl ClangItemParser for Item {
14491449
return Ok(Item::new_opaque_type(id, ty, ctx));
14501450
}
14511451

1452-
if let Some(id) = Item::type_param(Some(id), location, ctx) {
1453-
return Ok(id);
1452+
if let Some(param_id) = Item::type_param(None, location, ctx) {
1453+
return Ok(ctx.build_ty_wrapper(id, param_id, None, ty));
14541454
}
14551455
}
14561456

0 commit comments

Comments
 (0)