added block expression

This commit is contained in:
Andrew Segavac
2021-05-29 11:01:34 -06:00
parent 374e080f26
commit 03fb361e0b
3 changed files with 9 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
fn add(a: I32, b: I32): I32 {
let foo = 4;
let test_float: F32 = 10.2;
let test_float: F32 = {
10.2
};
a + b + foo
}