UoY-RoboStar / robochart-textual

This repository contains the plugins for the RoboChart textual editor
Eclipse Public License 2.0
0 stars 1 forks source link

Use of constants in the initialisation of variables in the same interface yields error #56

Closed alvarohm closed 2 years ago

alvarohm commented 2 years ago

Madiel has identified an issue where the following specification

interface IVars{
    const C1: real
    var v1 : real = C1
}

produces an error (C1 cannot be resolved), but similar declarations in a controller do not produce the same error.

alvarohm commented 2 years ago

This is caused by the implementation of variablesDeclared not covering Intefaces.

alvarohm commented 2 years ago

The solution has been committed and a pull request (#57) has been created.