Skip to content

Commit

Permalink
Show array types as [T0]T1 instead of [T1; T0]
Browse files Browse the repository at this point in the history
  • Loading branch information
samestep committed Sep 12, 2023
1 parent bba2b3f commit c578241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ pub fn pprint(f: &Func) -> Result<String, JsError> {
rose::Ty::Generic { id } => writeln!(&mut s, "G{}", id.generic())?,
rose::Ty::Ref { inner } => writeln!(&mut s, "&T{}", inner.ty())?,
rose::Ty::Array { index, elem } => {
writeln!(&mut s, "[T{}; T{}]", elem.ty(), index.ty())?
writeln!(&mut s, "[T{}]T{}", index.ty(), elem.ty())?
}
rose::Ty::Tuple { members } => {
write!(&mut s, "(")?;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/impl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ T1 = Bool
`
T0 = 3
T1 = F64
T2 = [T1; T0]
T2 = [T0]T1
(x0: T2, x1: T2) -> T2 {
x6: T2 = for x2: T0 {
x3: T1 = x0[x2]
Expand Down

0 comments on commit c578241

Please sign in to comment.