-
Notifications
You must be signed in to change notification settings - Fork 276
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 alias resolution bug
Fixes #495 Change-Id: Ia8a4b0972e036cd970f921046d5a436f7a8e413e Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7267 Reviewed-by: CUE cueckoo <cueckoo@gmail.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
2 changed files
with
74 additions
and
16 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,34 @@ | ||
-- in.cue -- | ||
t0: { | ||
a=_a: _ | ||
let _b = a | ||
_out: _b | ||
} | ||
t1: { | ||
_a: b | ||
let b = c | ||
c=d: 3 | ||
} | ||
-- out/compile -- | ||
--- in.cue | ||
{ | ||
t0: { | ||
_a: _ | ||
_out: 〈0;let _b〉 | ||
} | ||
t1: { | ||
_a: 〈0;let b〉 | ||
d: 3 | ||
} | ||
} | ||
-- out/eval -- | ||
(struct){ | ||
t0: (struct){ | ||
_a: (_){ _ } | ||
_out: (_){ _ } | ||
} | ||
t1: (struct){ | ||
_a: (int){ 3 } | ||
d: (int){ 3 } | ||
} | ||
} |
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