Added types
This commit is contained in:
@ -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
|
||||
}
|
Reference in New Issue
Block a user