Added types
This commit is contained in:
parent
60a920734d
commit
188b85fdce
33 changed files with 113 additions and 92 deletions
|
@ -70,14 +70,14 @@ main() {
|
|||
if x == 0 {
|
||||
sys.exit(0)
|
||||
}
|
||||
|
||||
|
||||
sys.exit(1)
|
||||
}
|
||||
|
||||
inc(x) {
|
||||
inc(x Int) -> Int {
|
||||
return x + 1
|
||||
}
|
||||
|
||||
dec(x) {
|
||||
dec(x Int) -> Int {
|
||||
return x - 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue