Skip to content

Commit 1d4b6e2

Browse files
committed
Add to the output the non generics behavior types
1 parent a0f6308 commit 1d4b6e2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

compiler-rs/clients_schema/src/transform/expand_generics.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ pub fn expand(model: IndexedModel, config: ExpandConfig) -> anyhow::Result<Index
152152
itf.inherits = Some(expand_inherits(inherit, &mappings, model, ctx)?);
153153
}
154154

155+
if !itf.behaviors.is_empty() {
156+
itf.behaviors.iter().for_each(|b| {
157+
if b.generics.is_empty() {
158+
// If the behavior has no generics, we can just expand it
159+
let _ = expand_type(&b.typ, Vec::new(), model, ctx);
160+
}
161+
});
162+
}
163+
155164
// We keep the generic parameters of behaviors, but expand their value
156165
for behavior in &mut itf.behaviors {
157166
for arg in &mut behavior.generics {
Binary file not shown.

0 commit comments

Comments
 (0)