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
I would expect this to evaluate to true, since -1 is an integer. However, this actually throws an error.
Exception in thread "main" com.hubspot.jinjava.interpret.FatalTemplateErrorsException: Cannot negate 'class java.lang.Boolean'
at com.hubspot.jinjava.Jinjava.render(Jinjava.java:192)
at Scratch.main(scratch.java:6)
This implies that the unary minus is binding looser than the is operator. That is, Jinjava interprets that expression the same as -(1 is integer) when it should interpret it as (-1) is integer.
The text was updated successfully, but these errors were encountered:
Consider the following expression:
I would expect this to evaluate to
true
, since-1
is aninteger
. However, this actually throws an error.This implies that the unary minus is binding looser than the
is
operator. That is, Jinjava interprets that expression the same as-(1 is integer)
when it should interpret it as(-1) is integer
.The text was updated successfully, but these errors were encountered: