Some updates to Schala source files
This commit is contained in:
parent
1d5e5aa735
commit
5c9180efc2
@ -1,12 +1,11 @@
|
||||
|
||||
const c = 10
|
||||
let c = 10
|
||||
|
||||
fn add(a, b) {
|
||||
const c = a + b
|
||||
let c = a + b
|
||||
c
|
||||
}
|
||||
|
||||
var b = 20
|
||||
let mut b = 20
|
||||
|
||||
println(add(1,2))
|
||||
println(c + b)
|
@ -1,10 +1,15 @@
|
||||
fn main() {
|
||||
const a = 10
|
||||
const b = 20
|
||||
let a = 10
|
||||
let b = 20
|
||||
a + b
|
||||
}
|
||||
|
||||
//foo
|
||||
//this is a one-line comment
|
||||
|
||||
/* this is
|
||||
a multiline
|
||||
comment
|
||||
*/
|
||||
|
||||
print(main())
|
||||
|
||||
|
@ -6,7 +6,7 @@ fn sua(x): Int {
|
||||
}
|
||||
|
||||
|
||||
//const a = getline()
|
||||
//let a = getline()
|
||||
|
||||
/*
|
||||
if a == "true" {
|
||||
|
Loading…
Reference in New Issue
Block a user