Skip to content

Commit bba2263

Browse files
committed
internal/core/adt: use state directly
This makes it compativle with v0.7. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I86b2b420bb7ee9af7b46cad10c39e83efac9baad Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172011 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
1 parent 596fdc9 commit bba2263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/core/adt/expr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ func isFinalError(n *Vertex) bool {
13981398
// change after the fact.
13991399
// expectError indicates whether the value should evaluate to an error or not.
14001400
func (c *OpContext) verifyNonMonotonicResult(env *Environment, x Expr, expectError bool) {
1401-
if n := env.Vertex.getNodeContext(c, 0); n != nil {
1401+
if n := env.Vertex.state; n != nil {
14021402
n.postChecks = append(n.postChecks, envCheck{
14031403
env: env,
14041404
expr: x,

0 commit comments

Comments
 (0)