Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart |
| index 8be465c988de1479f01122d7beba06439ffaaf6b..dea77ff12000b85356cd53b22ff9b8defdeed855 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart |
| @@ -984,8 +984,8 @@ class SimpleTypeInferrerVisitor<T> |
| && compiler.world.fieldNeverChanges(element)) { |
| var constant = |
| compiler.backend.constants.getConstantForVariable(element); |
| - if (constant != null && constant.isInt) { |
| - return constant.value; |
| + if (constant != null && constant.value.isInt) { |
| + return constant.value.value; |
|
sigurdm
2014/09/17 10:29:41
We talked about renaming the "value" field of prim
Johnni Winther
2014/09/17 12:20:40
Added a TODO on [PrimitiveConstant.value].
|
| } |
| } |
| return null; |