nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
49 stars 31 forks source link

Tighten checking of numeric values #102

Open bocchino opened 2 years ago

bocchino commented 2 years ago

If a numeric value is put into a type that can't hold it, throw an error. For example, this will not be allowed:

array A = [3] U32 default -1

because the type U32 cannot represent the integer value -1.