infer var type when initializer is a number constant
This commit is contained in:
@@ -14,7 +14,7 @@ func check[lines: array, x: i64, y: i64, dx: i64, dy: i64] : bool
|
||||
return true
|
||||
|
||||
func part1[lines: array] : void
|
||||
let out: i64 = 0
|
||||
let out = 0
|
||||
|
||||
for x in 0..array.size(lines)
|
||||
for y in 0..str.len(array.nth(lines, x))
|
||||
@@ -38,7 +38,7 @@ func part1[lines: array] : void
|
||||
io.println_i64(out)
|
||||
|
||||
func part2[lines: array] : void
|
||||
let out: i64 = 0
|
||||
let out = 0
|
||||
|
||||
for x in 1..array.size(lines)-1
|
||||
for y in 1..str.len(array.nth(lines, x))-1
|
||||
|
||||
Reference in New Issue
Block a user