gama-platform / gama

Main repository for developing the 2024+ versions of GAMA
https://gama-platform.org
GNU General Public License v3.0
12 stars 5 forks source link

Problem with action overriding with parent species #145

Closed ptaillandier closed 3 months ago

ptaillandier commented 3 months ago

Describe the bug The compilation/validation raises errors when overriding an action from a parent species.

To Reproduce Steps to reproduce the behavior:

  1. Create a new model with this code:
model testOM

species agA {
    action toto(string lala) {
        write "agA: " + lala;
    }
}

species agB parent: agA{
    /*action toto(string lala) {
        write "agB: " + lala;
    } */
}

experiment main;

The model has no compilation issue.

  1. Uncomment in species agB: /*action toto(string lala) { write "agB: " + lala;} */ and save: It is still possible to run the model but a compilation error is raised. Even after commenting the action toto in agB, the error will still be here. The only way to remove the error is to relaunch GAMA.

Desktop (please complete the following information):