Skip to content

Commit

Permalink
Merge pull request #332 from KisaragiEffective/feat/types/vec
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective authored Dec 20, 2023
2 parents c8786df + 8d43206 commit 54ebcc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package/origlang-typesystem-model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ pub enum Type {
#[display(fmt = "&mut {_0}")]
RefMut(Box<Self>),
/// indicates that value may not present at memory location.
Option(Box<Self>)
#[display(fmt = "Option<{_0}>")]
Option(Box<Self>),
/// indicates continuous and growable memory.
#[display(fmt = "Vec<{_0}>")]
Vec(Box<Self>),
}

impl Type {
Expand Down

0 comments on commit 54ebcc3

Please sign in to comment.