oden/fine/tests/expression/lists.fine
John Doty 5f0a0b3268 [fine] Many test improvements, error improvements
- Check for more error conditions
- Move to more definitive error assertions
- Simpler error messages in some cases
- Test more conditions more thoroughly, revisit old tests
2024-01-21 08:14:42 -08:00

16 lines
No EOL
213 B
Text

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>