We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Repro in pure SCI:
user=> (sci/eval-string "(defprotocol ICounter (inc! [_])) (deftype Cnt [^:unsynchronized-mutable n] ICounter (inc! [_] (let [old-n n new-n-set (set! n (inc n)) new-n n] [old-n new-n-set new-n]))) (inc! (->Cnt 1))") [1 {n 2} 1]
Expected result: [1 2 2].
[1 2 2]
Originally posted by @borkdude in babashka/babashka#1401 (comment)
The text was updated successfully, but these errors were encountered:
Fix #817: mutation should be visible in protocol method
b29e94a
cf600e6
No branches or pull requests
Repro in pure SCI:
Expected result:
[1 2 2]
.Originally posted by @borkdude in babashka/babashka#1401 (comment)
The text was updated successfully, but these errors were encountered: