[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / docs / ecma334 / 14.9.5.xml
1 <?xml version="1.0"?>
2 <clause number="14.9.5" title="Enumeration comparison operators">
3   <paragraph>Every enumeration type implicitly provides the following predefined comparison operators: <code_example><![CDATA[
4 bool operator ==(E x, E y);  
5 bool operator !=(E x, E y);  
6 bool operator <(E x, E y);  
7 bool operator >(E x, E y);  
8 bool operator <=(E x, E y);  
9 bool operator >=(E x, E y);  
10 ]]></code_example></paragraph>
11   <paragraph>The result of evaluating x op y, where x and y are expressions of an enumeration type E with an underlying type U, and op is one of the comparison operators, is exactly the same as evaluating ((U)x) op ((U)y). In other words, the enumeration type comparison operators simply compare the underlying integral values of the two operands. </paragraph>
12 </clause>