plow-technologies / inferno

A statically-typed functional scripting language
MIT License
4 stars 1 forks source link

Confusing type error message when comparing Array.length to a double #44

Open siddharth-krishna opened 1 year ago

siddharth-krishna commented 1 year ago
image

This is the offending script:

let list = [Array.length []] in
[if (a > 0.0) then 1.0 else 0.0 | a <- list]

A potentially related script with a confusing message:

image

I'd expect it to say could not match the type int with double.