1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: error on a.slice(x,y) outside builtin

This commit is contained in:
Delyan Angelov
2021-01-19 14:34:25 +02:00
parent 129eee346b
commit d9532eda30
7 changed files with 41 additions and 24 deletions

View File

@ -50,7 +50,7 @@ mut:
fn (mut n Network) populate(network []int) {
assert network.len >= 2
input := network[0]
hiddens := network.slice(1, network.len - 1)
hiddens := network[1..network.len-1]
output := network[network.len - 1]
mut index := 0
mut previous_neurons := 0