Parameters must be of exported types
Posted: Wed May 22, 2024 11:42 pm
When compiling a module TypeExports which imports a module M1 both directly and indirectly (via module M2), an error message is incorrectly reported:
Where M1 and M2 are:
TypeExports compiles without an error if the order of the imports is changed to:
Code: Select all
Line Col
5 25 Error: parameters must be of exported types
Code: Select all
MODULE TypeExports;
IMPORT M2, M1;
PROCEDURE Test*(r: M1.R);
END Test;
END TypeExports.
Code: Select all
MODULE M1;
TYPE
R* = RECORD END;
END M1.
Code: Select all
MODULE M2;
IMPORT M1;
PROCEDURE P*(r: M1.R);
END P;
END M2.
Code: Select all
IMPORT M1, M2;