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
........ the v expr() is: [*4 | int] and the length is: 2, ops is | (or doesn't matter)
........ the v expr() is: [*4 | int *7 | int] and the length is: 2, ops is : |
........ the v expr() is: [4 7] and the length is: 2, ops is : |
What did you see instead?
........ the v expr() is: [*4 | int] and the length is: 1, ops is :
........ the v expr() is: [*4 | int *7 | int] and the length is: 2, ops is : |
........ the v expr() is: [4 7] and the length is: 2, ops is : |
PS:
it seems
AType: *4 | int
Foo: {
Baz: AType | *7
}
with Expr() I am getting 1 cue.Value in the return list, but with
AType: *4 | int
Foo: {
Baz: AType | *"pool"
}
I am getting 2 cue.Values in the return list...
The text was updated successfully, but these errors were encountered:
It is necessary to take the default of the subsuming value,
but only if it is a disjunction.
Fixes#1245
Signed-off-by: Marcel van Lohuizen <[email protected]>
Change-Id: Ifd89b79220d8bccb6311aee14d9ae38150014eee
Signed-off-by: Marcel van Lohuizen <[email protected]>
What version of CUE are you using (
cue version
)?0.4.0-alpha.2
Does this issue reproduce with the latest release?
yes
What did you do?
https://github.com/ying-jeanne/cue_test_cases/blob/bf84db6edba61d3479838967d7445f1775393fc3/main.go
What did you expect to see?
........ the v expr() is: [*4 | int] and the length is: 2, ops is | (or doesn't matter)
........ the v expr() is: [*4 | int *7 | int] and the length is: 2, ops is : |
........ the v expr() is: [4 7] and the length is: 2, ops is : |
What did you see instead?
........ the v expr() is: [*4 | int] and the length is: 1, ops is :
........ the v expr() is: [*4 | int *7 | int] and the length is: 2, ops is : |
........ the v expr() is: [4 7] and the length is: 2, ops is : |
PS:
it seems
with Expr() I am getting 1 cue.Value in the return list, but with
I am getting 2 cue.Values in the return list...
The text was updated successfully, but these errors were encountered: