-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
evalv3: field not allowed #3331
Labels
Comments
Really bizarre. This fails: import "list"
#A: {
let b = {}
c: #B & b & {
d: 1
}
}
#B: d: int
list.Concat([[#A]])
This doesn't: import "list"
#A: {
c: #B & {
d: 1
}
}
#B: d: int
list.Concat([[#A]]) This is also okay: import "list"
#A: {
c: #B & {} & {
d: 1
}
}
#B: d: int
list.Concat([[#A]]) |
this is okay though. import "list"
#A: {
let b = #B & {}
c: b & {
d: 1
}
}
#B: d: int
list.Concat([[#A]]) |
Analysis: Similar to #3330. Normally referencing a struct within a definition does not affect closeness. In other words, this is allowed according to the spec:
Referencing in |
cueckoo
pushed a commit
that referenced
this issue
Aug 12, 2024
Issue #3325 Issue #3330 Issue #3331 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I16c3639fb016020ea58b75e7ecefa0fc1d1afe84 Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1199271 Reviewed-by: Matthew Sackman <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
What did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: