-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Reported by perost on 13 Aug 2013 09:22 UTC
Is the built-in variable time allowed to be shadowed by another element? I.e. can you declare an element with the name time? The specification (3.6.7) only says that time is a built-in variable available in all models and blocks, which doesn't preclude declaring a local element with the name time. Allowing time to be shadowed causes some ambiguity though:
package P
constant Real time = 1.0;
model A
Real x = time; // Which time is referenced here?
end A;
end P;
Migrated-From: https://trac.modelica.org/Modelica/ticket/1243
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working