Skip to content
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

internal/core/adt: dynamic fields not properly resolve with default values #1871

Closed
Tracked by #1795
mpvl opened this issue Aug 23, 2022 · 0 comments
Closed
Tracked by #1795
Assignees
Labels
roadmap/evaluator Specific tag for roadmap issue #338

Comments

@mpvl
Copy link
Member

mpvl commented Aug 23, 2022

What version of CUE are you using (cue version)?

near-tip:
cue version v0.0.0-20220812162136-7ad3777f9942

   -compiler gc
 CGO_ENABLED 1
      GOARCH amd64
        GOOS darwin
     GOAMD64 v1
         vcs git
vcs.revision 7ad3777f9942877b60cd9036c84dc9f6a0c0a951
    vcs.time 2022-08-12T16:21:36Z
vcs.modified true

Does this issue reproduce with the latest release?

Yes

What did you do?

cue eval -

b: {
        c: *"d" | string
        (c): 2
}

What did you expect to see?

success

What did you see instead?

An unresolved dynamic fields

b: {
    c:   *"d" | string
    (c): 2
}

Discovered when investigating #1795

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap/evaluator Specific tag for roadmap issue #338
Projects
None yet
Development

No branches or pull requests

1 participant