Community
Participate
Working Groups
This causes several failures in Java in the testcase I wrote on Friday for the language enhancements about nullablity, arrays, and curly braces. I expect it'll cause failures in JavaScript too. IRUtils.makeCompatible(BinaryExpression expr, Type type1, Type type2) is boxing when we compare two enumeration values, but it shouldn't. Here's a simple testcase. package y; program enums function main() ok1 OrderingKind = OrderingKind.byKey; ok2 OrderingKind = OrderingKind.byKey; if ( ok1 == ok2 ) SysLib.writeStdout( "== worked" ); else SysLib.writeStdout( "== failed" ); end ok2 = OrderingKind.none; if ( ok1 != ok2 ) SysLib.writeStdout( "!= failed" ); else SysLib.writeStdout( "!= worked" ); end end end
*** Bug 358233 has been marked as a duplicate of this bug. ***
fixed
Verified.