diff --git a/hugr-core/tests/snapshots/model__roundtrip_const.snap b/hugr-core/tests/snapshots/model__roundtrip_const.snap index fa03a3031e..34a50a5351 100644 --- a/hugr-core/tests/snapshots/model__roundtrip_const.snap +++ b/hugr-core/tests/snapshots/model__roundtrip_const.snap @@ -36,9 +36,9 @@ expression: ast (core.fn [] [(core.adt [[] []]) (core.adt [[] []])]) (dfg [] [%0 %1] (signature (core.fn [] [(core.adt [[] []]) (core.adt [[] []])])) - ((core.load_const (core.const.adt [[] []] _ 0 [])) [] [%0] + ((core.load_const (core.const.adt [[] []] _ 0 (tuple))) [] [%0] (signature (core.fn [] [(core.adt [[] []])]))) - ((core.load_const (core.const.adt [[] []] _ 1 [])) [] [%1] + ((core.load_const (core.const.adt [[] []] _ 1 (tuple))) [] [%1] (signature (core.fn [] [(core.adt [[] []])]))))) (define-func @@ -62,15 +62,16 @@ expression: ast arithmetic.float.types.float64]] _ 0 - [(collections.array.const - 5 - (arithmetic.int.types.int 6) - [(arithmetic.int.const 6 1) - (arithmetic.int.const 6 2) - (arithmetic.int.const 6 3) - (arithmetic.int.const 6 4) - (arithmetic.int.const 6 5)]) - (arithmetic.float.const_f64 -3.0)])) + (tuple + (collections.array.const + 5 + (arithmetic.int.types.int 6) + [(arithmetic.int.const 6 1) + (arithmetic.int.const 6 2) + (arithmetic.int.const 6 3) + (arithmetic.int.const 6 4) + (arithmetic.int.const 6 5)]) + (arithmetic.float.const_f64 -3.0)))) [] [%0] (signature (core.fn diff --git a/hugr-model/src/v0/ast/view.rs b/hugr-model/src/v0/ast/view.rs index 8c38038100..84770c4cf2 100644 --- a/hugr-model/src/v0/ast/view.rs +++ b/hugr-model/src/v0/ast/view.rs @@ -17,7 +17,7 @@ impl<'a> View<'a, TermId> for Term { table::Term::Func(region_id) => Term::Func(Arc::new(module.view(*region_id)?)), table::Term::List(list_parts) => Term::List(module.view(*list_parts)?), table::Term::Literal(literal) => Term::Literal(literal.clone()), - table::Term::Tuple(tuple_parts) => Term::List(module.view(*tuple_parts)?), + table::Term::Tuple(tuple_parts) => Term::Tuple(module.view(*tuple_parts)?), }) } }