Opened 14 years ago
Last modified 14 years ago
#1252 closed defect (worksforme)
Insufficient type checking of relational operations
Reported by: | Per Östlund | Owned by: | Per Östlund |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Per Östlund, |
Description
OMC doesn't seem to make a lot of type checking of relational operations. A model such as
model test constant Real r = 20; constant String s = "test"; output Boolean b; equation b = (r < s); end test;
shouldn't compile, but OMC even generates code for it (which of course doesn't work).
Note:
See TracTickets
for help on using tickets.