Skip to content

Inconsistent error messages #91

Description

@steven-r

If you declare a const after a var with identical name, you receive the following error:

A variable/constant with this name has been defined already

If you declare a var after a const with identical name, you receive the error:

Variable declared twice

Example for error 1

 MODULE Test;
 CONST
   Test = 1;
 VAR
   Test: INTEGER;
 
  END Test.

Example for error 2

 MODULE Test;
 CONST
     id = 1;
 VAR
     id: INTEGER;
 
  END Test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions