nest / nestml

A domain specific language for neuron and synapse models in spiking neural network simulation
GNU General Public License v2.0
45 stars 46 forks source link

Symbol resolution bug for locally defined variables #1015

Open clinssen opened 4 months ago

clinssen commented 4 months ago

The model

model resolution_test2:
    state:
        foo boolean = true

    update:
        if foo:
            f real = 1.
        else:
            f real = 2.

gives the error "Variable 'f' redeclared !" on the second "f real = ..." line, whereas the variable scope should be local.