| Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (revision 15011)
|
| +++ sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (working copy)
|
| @@ -134,7 +134,7 @@
|
| && element.isField()) {
|
| DartType elementType = element.computeType(compiler);
|
| DartType constantType = value.computeType(compiler);
|
| - if (!compiler.types.isSubtype(constantType, elementType)) {
|
| + if (!constantSystem.isSubtype(compiler, constantType, elementType)) {
|
| if (isConst) {
|
| MessageKind kind = MessageKind.NOT_ASSIGNABLE;
|
| compiler.reportError(node, new CompileTimeConstantError(
|
|
|