rascal icon indicating copy to clipboard operation
rascal copied to clipboard

Parameterized Syntax: Undeclared type error

Open TarVK opened this issue 2 years ago • 1 comments

Describe the bug

When using a parameterized syntax type, type reification does not appear to work. It errors mentioning that the type is not declared

To Reproduce

Steps to reproduce the behavior:

  1. Declare:
syntax Opt[&K] = | &K;
syntax P = "a";
  1. Try to execute #Opt[P]
  2. Observer error: "Undeclared type: Opt"

Expected behavior The reified type should be returned. This does work properly when using Opt elsewhere, such as:

syntax Q = Opt[P];
#Q;

Screenshots

image

Desktop (please complete the following information):

  • Context: VSCode extension, Commandline REPL
  • Rascal Version: 0.28.3

TarVK avatar Mar 01 '23 14:03 TarVK

thanks @TarVK ; will have a look.

jurgenvinju avatar Mar 01 '23 14:03 jurgenvinju