Skip to content

Commit 4cbb180

Browse files
committed
cue: add missing finalization
In some cases a value may not be finalized. Issue #3825 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I87143c1b332db8596d8157ae96c8bc2534229315 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1212030 Reviewed-by: Matthew Sackman <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent c7a0369 commit 4cbb180

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cue/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,7 @@ func reference(rt *runtime.Runtime, c *adt.OpContext, env *adt.Environment, r ad
18971897
if inst == nil {
18981898
return nil, nil
18991899
}
1900+
inst.Finalize(c)
19001901
return inst, path
19011902
}
19021903

encoding/openapi/testdata/issue131.txtar

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#skip-v3-noshare
21
-- in.cue --
32
package ext
43

0 commit comments

Comments
 (0)