Skip to content

Commit ed61df2

Browse files
committed
cue: return empty struct for disallowed unification
The old code seems wrong. Change-Id: I3d73c424613af198fab55458700c61c2d723ea52 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6582 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]>
1 parent 97b215f commit ed61df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cue/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ func (v Value) Template() func(label string) Value {
16281628
if val, _ := x.optionals.constraint(ctx, arg); val != nil {
16291629
return remakeValue(v, val)
16301630
}
1631-
return v
1631+
return Value{}
16321632
}
16331633
}
16341634

0 commit comments

Comments
 (0)