Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type alias is not taken into account #112

Closed
Oleg-N-Cher opened this issue Jan 19, 2022 · 0 comments
Closed

Type alias is not taken into account #112

Oleg-N-Cher opened this issue Jan 19, 2022 · 0 comments
Labels

Comments

@Oleg-N-Cher
Copy link
Owner

GameHunter reports:

MODULE Ex;

TYPE
  R0 = EXTENSIBLE RECORD
    x:REAL;
  END;
 
  R1 = EXTENSIBLE RECORD (R0)
    y:REAL;
  END;

  R2 = R1;
 
  R3 = EXTENSIBLE RECORD (R2)
    z:REAL;
  END;
 
PROCEDURE Example (VAR r:R0);
  BEGIN
    WITH r:R1 DO
      r.y:=0
    | r:R2 DO
      r.y:=0
    | r:R3 DO
      r.z:=0
    ELSE
      r.x:=0
    END;
  END Example;
 
END Ex.

This code translates normally, but gives the error "non-existing type R2" when compiling.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant