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

Locals incorrectly cleared #741

Closed
frenchy64 opened this issue May 18, 2022 · 0 comments
Closed

Locals incorrectly cleared #741

frenchy64 opened this issue May 18, 2022 · 0 comments

Comments

@frenchy64
Copy link

version

./bb --version
babashka v0.8.3-SNAPSHOT

platform

uname -a
Darwin AmbrosesMBP2020.lan 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64

problem

The following expression should not clear locals.

repro

./bb
Babashka v0.8.3-SNAPSHOT REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> ((let [cleared 1]
          (fn ([] (assert cleared))
              ([& bs]))))
java.lang.AssertionError: Assert failed: cleared [at <repl>:1:1]

expected behavior

clj
Clojure 1.11.1
user=> ((let [cleared 1]
          (fn ([] (assert cleared))
              ([& bs]))))

nil
@borkdude borkdude transferred this issue from babashka/babashka May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant