Union tests: the composition body is a boxed Node, the recursive type has finite size
Not yet run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2d840d5ffb
commit
2e5fc0f7f8
1 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ struct Composition {
|
|||
#[cultcache(key = 0)]
|
||||
name: String,
|
||||
#[cultcache(key = 1)]
|
||||
body: Option<Node>,
|
||||
body: Option<std::boxed::Box<Node>>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, CultUnion)]
|
||||
|
|
@ -171,7 +171,7 @@ fn constructed() -> UnionSurface {
|
|||
text("t1", "hello"),
|
||||
Node::Use(UseArm {
|
||||
id: "u1".into(),
|
||||
composition: Composition { name: "comp".into(), body: Some(inner) },
|
||||
composition: Composition { name: "comp".into(), body: Some(std::boxed::Box::new(inner)) },
|
||||
slots: vec![Some(text("s1", "slot")), None, Some(boxed("b2", vec![]))],
|
||||
}),
|
||||
image("i2", "uri://b", ""),
|
||||
|
|
|
|||
Loading…
Reference in a new issue