-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1981 Fixes #1786 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: Ie7461fc6d42bea71db99559c4961271b6a271fd0 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/546243 Unity-Result: CUEcueckoo <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
exec cue eval -i in.cue | ||
cmp stdout expect/stdout | ||
|
||
# Issue #1981 | ||
# Issue #1786 | ||
-- in.cue -- | ||
a: 4 | ||
a: 5 | ||
|
||
l: [ 1, 2 ] | ||
l: [ 1, 3 ] | ||
|
||
list: [0, 1, 2] | ||
val: list[3] | ||
|
||
-- expect/stdout -- | ||
a: _|_ // a: conflicting values 5 and 4 | ||
l: [1, _|_] | ||
list: [0, 1, 2] | ||
val: _|_ // val: index out of range [3] with length 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters