- 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
16 lines
No EOL
213 B
Text
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> |