You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'oso'
$polar=<<POLARtest(b) if b = input.foo;POLARinput={"foo"=>"baz"}o=Oso.newo.load_str($polar)o.register_constant('input',value: input)x=Oso::Polar::Variable.new('x')putso.query_rule('test',x).force
I get the following output when running the script:
$ bundle exec ruby ../osoq/r.rbSingleton variable input is unused or undefined, see <https://docs.oso.dev/using/polar-syntax.html#variables>002: b = input.foo; ^{"x"=>"baz"}
It seems to work alright, but the warning is wrong?
The text was updated successfully, but these errors were encountered:
With
r.rb
asI get the following output when running the script:
It seems to work alright, but the warning is wrong?
The text was updated successfully, but these errors were encountered: