brettviren / moo

ruminants on module oriented programming
GNU General Public License v3.0
4 stars 4 forks source link

TLA types not inferred #8

Closed brettviren closed 3 years ago

brettviren commented 3 years ago

This junk.jsonnet file:

function(var=10) std.range(0, var-1)

compiled like:

$ moo -A var=5 compile junk.jsonnet

Gives

RuntimeError: RUNTIME ERROR: binary operator - requires matching types, got string and number.

The 5 is not being interpreted into an integer but is wrongly kept as a string.