Closed
Description
Dart2js with the new frontend produces a different representation of constants that:
- use "!="
- use redirecting const factory constructors.
Examples:
-
1 != 2
is represented as!(1 == 2)
with the CFE -
with the following code,
const B<int>()
is represented asconst A<B<int>>
class A<T> implements B {}
class B<S> {
const factory B() = A<B<S>>;
}
Some of these cases are seen in tests/compiler/dart2js/model/constant_expression_test.dart
/cc @johnniwinther