fix array_test.v

pull/3635/head
Alexander Medvednikov 2020-02-03 10:27:06 +01:00
parent 50b704c5dd
commit 1ac7a95f9b
2 changed files with 1 additions and 3 deletions

View File

@ -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)

View File

@ -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)