Skip to content

defonce overwritten in advanced mode #1185

@danjohansson

Description

@danjohansson

The following code gives the printout x: 2
Expected printout x: 1

(ns test)

(defn run-defonce [v] (defonce x v))
(run-defonce 1)
(run-defonce 2)

(println "x: " x)

I have tried the same code in the clojure clojurescript compiler, with the advanced mode setting turned on, without being able to reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions