-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/compile: fix aliases to dynamic fields
For all orderings that is. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I34156d7f22b3056737694de20132719a07166d1b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/542797 Unity-Result: CUEcueckoo <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
- Loading branch information
Showing
2 changed files
with
65 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
-- in.cue -- | ||
dynamic: t1: { | ||
X=(a): 1 | ||
x: X | ||
a: "name" | ||
} | ||
|
||
dynamic: t2: { | ||
x: X | ||
X=(a): 1 | ||
a: "name" | ||
} | ||
-- out/compile -- | ||
--- in.cue | ||
{ | ||
dynamic: { | ||
t1: { | ||
〈0;a〉: 1 | ||
x: 〈0;(〈0;a〉)〉 | ||
a: "name" | ||
} | ||
} | ||
dynamic: { | ||
t2: { | ||
x: 〈0;(〈0;a〉)〉 | ||
〈0;a〉: 1 | ||
a: "name" | ||
} | ||
} | ||
} | ||
-- out/eval -- | ||
(struct){ | ||
dynamic: (struct){ | ||
t1: (struct){ | ||
x: (int){ 1 } | ||
a: (string){ "name" } | ||
name: (int){ 1 } | ||
} | ||
t2: (struct){ | ||
x: (int){ 1 } | ||
a: (string){ "name" } | ||
name: (int){ 1 } | ||
} | ||
} | ||
} |
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