Skip to content

'Undeclared variable' error on use of declared constructor #2513

@toinehartman

Description

@toinehartman

Describe the bug
Using MStatus::ignored() throws an Undeclared variable error, while using MStatus::tpl_uptodate() does not.

To Reproduce

rascal>import lang::rascalcore::check::CheckerCommon;
ok
rascal>ignored();
|prompt:///|(0,7,<1,0>,<1,7>): Undeclared variable: ignored
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable|
rascal>MStatus::ignored();
|prompt:///|(0,16,<1,0>,<1,16>): Undeclared variable: MStatus::ignored
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable|
rascal>tpl_saved();
MStatus: tpl_saved()

Expected behavior
No error.

Desktop (please complete the following information):

  • Context: Eclipse plugin, Commandline REPL
  • Rascal Version: 0.41.0-RC76

Additional context:
Relevant declaration in lang::rascalcore::check::CheckerCommon:

data MStatus =
      rsc_not_found()
    | tpl_not_found()
    | rsc_changed()
    | parsed()
    | parse_error()
    | module_dependencies_extracted()
    | checked()
    | check_error()
    | code_generated()
    | code_generation_error()
    | tpl_uptodate()
    | tpl_saved()
    | ignored()
    | bom_update_needed()
    ;

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions