Opened 13 years ago

Last modified 13 years ago

#1702 closed defect (fixed)

Reject comparison Integer == Enum

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Martin Sjölund,

Description

{{{model M

type L = enumeration('0','1');
L logic = L.'1';
Boolean b = logic == 0;

end M;}}}

Change History (2)

comment:1 by Martin Sjölund, 13 years ago

Quite hard to add this restriction without changing the libraries because stupid MSL relies on things like:
integer(realVar) == enumVar

comment:2 by Martin Sjölund, 13 years ago

Easy solution: Update standard library while fixing these things

Note: See TracTickets for help on using tickets.