Opened 19 years ago
Last modified 19 years ago
#28 closed defect (fixed)
Import of constant in packages does not work.
Reported by: | petar | Owned by: | petar |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | petar, adrpo |
Description
Note: See
TracTickets for help on using
tickets.
Importing a constant from a package does not work. This is because
lookup_var_in_packages (or actually lookup_var_local) does not check import
statements.
The following code triggers the bug.
Workaround: Remove the import and use the fully qualified name of the constant
instead.
package A
package Constants
end Constants;
end A;
model ImportConstantTest
equation
end ImportConstantTest;