File tree 2 files changed +0
-14
lines changed
2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -862,19 +862,6 @@ class ConstantEvaluationEngine {
862
862
return true ;
863
863
}
864
864
var objType = obj.type;
865
- if (objType.isDartCoreInt && type.isDartCoreDouble) {
866
- // Work around dartbug.com/35993 by allowing `int` to be used in a place
867
- // where `double` is expected.
868
- //
869
- // Note that this is not technically correct, because it allows code like
870
- // this:
871
- // const Object x = 1;
872
- // const double y = x;
873
- //
874
- // TODO(paulberry): remove this workaround once dartbug.com/33441 is
875
- // fixed.
876
- return true ;
877
- }
878
865
return typeSystem.isSubtypeOf (objType, type);
879
866
}
880
867
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ main() {
17
17
/// to this class.
18
18
@reflectiveTest
19
19
class VariableTypeMismatchTest extends DriverResolutionTest {
20
- @FailingTest (reason: 'Workaround for #35993 is too broad' )
21
20
test_int_to_double_variable_reference_is_not_promoted () async {
22
21
// Note: in the following code, the declaration of `y` should produce an
23
22
// error because we should only promote literal ints to doubles; we
You can’t perform that action at this time.
0 commit comments