Skip to content

preserve top-level named type during upcast to fusion type#6766

Merged
nwt merged 1 commit intomainfrom
upcast-named
Mar 25, 2026
Merged

preserve top-level named type during upcast to fusion type#6766
nwt merged 1 commit intomainfrom
upcast-named

Conversation

@nwt
Copy link
Member

@nwt nwt commented Mar 25, 2026

Casting a value with a named type to a fusion type discards the name. Preseve it in the resulting fusion value instead.

This change affects both upcast() and the fuse operator since it upcasts every value.

This change does not affect the blend operator but I've added the same test cases to both runtime/ztests/op/blend.yaml and runtime/ztests/op/fuse.yaml to keep them in sync.

Casting a value with a named type to a fusion type discards the name.
Preseve it in the resulting fusion value instead.

This change affects both upcast() and the fuse operator since it upcasts
every value.

This change does not affect the blend operator but I've added the same
test cases to both runtime/ztests/op/blend.yaml and
runtime/ztests/op/fuse.yaml to keep them in sync.
@nwt nwt requested a review from a team March 25, 2026 04:10
@nwt nwt merged commit c5a240e into main Mar 25, 2026
2 checks passed
@nwt nwt deleted the upcast-named branch March 25, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants