This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: track more incomplete errors
This was sometimes lost in computation, for instance across package boundaries. This results in less nice errors for certain cycle cases. This should be handled in an evaluator rework. Fixes #854 Change-Id: Ieb927dbb8d11d2ad2651b85a375d11913a8612b2 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9181 Reviewed-by: Marcel van Lohuizen <[email protected]>
- Loading branch information
Showing
3 changed files
with
59 additions
and
25 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,32 @@ | ||
-- cue.mod/module.cue -- | ||
module: "mod.com" | ||
-- a.cue -- | ||
package a | ||
|
||
import "mod.com/b" | ||
|
||
theb: b.name | ||
-- b/b.cue -- | ||
package b | ||
|
||
import "mod.com/c" | ||
|
||
b: c.c & { | ||
other: "name" | ||
} | ||
|
||
name: b.other | ||
-- c/c.cue -- | ||
package c | ||
-- out/compile -- | ||
--- a.cue | ||
{ | ||
theb: 〈import;"mod.com/b"〉.name | ||
} | ||
-- out/eval -- | ||
(struct){ | ||
theb: (_|_){ | ||
// [incomplete] b: undefined field c: | ||
// ./b/b.cue:5:6 | ||
} | ||
} |
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