work on adding when clause

This commit is contained in:
Kasey White
2022-10-01 20:36:16 -04:00
committed by Lucas
parent 118a5ac54e
commit 722dc4b477
3 changed files with 44 additions and 16 deletions

View File

@@ -52,10 +52,12 @@ fn module() {
}
pub fn wow2(a: Int){
let x = 1 + {
2 + 7 * 8
} / 2
x
when a is {
0 -> 3
1 | 2 -> 5
3 if a == 3 -> 9
_ -> 4
}
}
"#;
let len = code.chars().count();