Closed proppy closed 3 years ago
Analysis: the problem here is the cyclic reference between let declarations, which is not allowed.
We could potentially allow this by treating let fields more like regular field (implementation-wise), which is something that was planned anyway. But for now the easiest is to disallow this.
Minimal reproducer:
let a = { c: b }
let b = a
out: a
This issue has been migrated to https://github.com/cue-lang/cue/issues/1042.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
Some error about circular definitions between
fulladders
andcarries
.What did you see instead?