-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fn memoized with incorrect value from parent scope when value is from inline else
of a switch
#19586
Labels
bug
Observed behavior contradicts documented or intended behavior
Comments
Jarred-Sumner
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Apr 8, 2024
Jarred-Sumner
added a commit
to oven-sh/bun
that referenced
this issue
Apr 8, 2024
@rohlem that version is newer than the one I tested with |
Fixed on master (tested by @rohlem, plus I tested on |
Jarred-Sumner
added a commit
to oven-sh/bun
that referenced
this issue
Apr 8, 2024
…emory usage (#10037) * [bundows] Make bun install 60% faster * [autofix.ci] apply automated fixes * Do not keep node_modules folder open between async tasks. Make sure we call runTasks on every event loop wakeup. * Update install.zig * Fix deadlock * Make that deadlock impossible * a little less repetitive * Fix test failure with local tarball * Get those tests to pass * Normalize absolutely * lets see how many times we call GetFinalPathNameByHandle * Workaround ziglang/zig#19586 ziglang/zig#19586 * Is the dev-server-100 test failure a hash table collision? * Give it its own cache dir * We cannot change the git task ids --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.12.0-dev.1828+225fe6ddb
Steps to Reproduce and Observed Behavior
Expected Behavior
It should output the following:
It should not choose the last value from the
inline else
for each invocation. It also shouldn't be a compiler error sincelog_level
is unambiguously comptime-known due to theinline else
.The text was updated successfully, but these errors were encountered: