schala/source_files/schala/does_scope_work.schala

12 lines
99 B
Plaintext
Raw Normal View History

2018-08-20 19:03:55 -07:00
let c = 10
2018-05-11 02:40:26 -07:00
2018-05-12 01:40:36 -07:00
fn add(a, b) {
2018-08-20 19:03:55 -07:00
let c = a + b
2018-05-12 01:40:36 -07:00
c
}
2018-08-20 19:03:55 -07:00
let mut b = 20
2018-05-12 01:40:36 -07:00
println(add(1,2))
println(c + b)