databricks / sjsonnet

Apache License 2.0
267 stars 55 forks source link

Parsing error on valid conditionals as local function parameter #127

Closed ngbinh closed 1 year ago

ngbinh commented 3 years ago

This program:

local myFunc = function(a)
  if (a) then "a" else "b";

local b = "aaa";

myFunc(b == [] || b == ['e'])

works on https://jsonnet.org/ but produces a parsing error "Parse error: Expected ")":7:8, found "b == [] ||"" on sjsonnet 0.4.0.