Skip to content

Commit

Permalink
Add constant example
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed May 7, 2024
1 parent 907fd28 commit 0340db8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/constants.con
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mod Example {
const foo: i32 = 10;

fn main() -> i32 {
return foo;
}
}

0 comments on commit 0340db8

Please sign in to comment.