diff options
-rw-r--r-- | src/ir/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/item.rs b/src/ir/item.rs index 1cb1d5f9..91ec22b3 100644 --- a/src/ir/item.rs +++ b/src/ir/item.rs @@ -1449,8 +1449,8 @@ impl ClangItemParser for Item { return Ok(Item::new_opaque_type(id, ty, ctx)); } - if let Some(id) = Item::type_param(Some(id), location, ctx) { - return Ok(id); + if let Some(param_id) = Item::type_param(None, location, ctx) { + return Ok(ctx.build_ty_wrapper(id, param_id, None, ty)); } } |