Open moleike opened 3 years ago
This is expected given we are treating super as a variable, while Jsonnet core AST super is just another literal.
super
C++ impl. returns the following:
{ foo: "bar", bar: super.foo }
RUNTIME ERROR: attempt to use super when there is no super class.
While:
{ foo: "bar", bar: "foo" in super }
outputs:
{ "bar": false, "foo": "bar" }
The following test fails due to this:
std.assertEqual({ f+: 3 }, { f: 3 })
This is expected given we are treating super as a variable, while Jsonnet core AST
super
is just another literal.C++ impl. returns the following:
RUNTIME ERROR: attempt to use super when there is no super class.
While:
outputs:
The following test fails due to this: