fix array_test.v
parent
50b704c5dd
commit
1ac7a95f9b
|
@ -447,7 +447,6 @@ pub fn (a []char) index(v char) int {
|
|||
return -1
|
||||
}
|
||||
|
||||
/*
|
||||
// []int.reduce executes a given reducer function on each element of the array,
|
||||
// resulting in a single output value.
|
||||
pub fn (a []int) reduce(iter fn(accum, curr int)int, accum_start int) int {
|
||||
|
@ -458,7 +457,6 @@ pub fn (a []int) reduce(iter fn(accum, curr int)int, accum_start int) int {
|
|||
}
|
||||
return _accum
|
||||
}
|
||||
*/
|
||||
|
||||
// array_eq<T> checks if two arrays contain all the same elements in the same order.
|
||||
// []int == []int (also for: i64, f32, f64, byte, string)
|
||||
|
|
|
@ -186,7 +186,7 @@ pub fn (c &Checker) array_init(array_init ast.ArrayInit) table.Type {
|
|||
}
|
||||
|
||||
fn (c &Checker) stmt(node ast.Stmt) {
|
||||
match node {
|
||||
match mut node {
|
||||
ast.FnDecl {
|
||||
for stmt in it.stmts {
|
||||
c.stmt(stmt)
|
||||
|
|
Loading…
Reference in New Issue