fun sum(x: list<f64>) -> f64 {
  let result = 0;
  for v in x {
    result = result + v;
  }
  result
}

fun test() -> f64 {
  let val = [1, 2, 3];
  sum(val)
}

// @ignore WIP
// @no-errors
// @type: 88 list<f64>