| Index: pkg/compiler/lib/src/mirrors_used.dart
|
| diff --git a/pkg/compiler/lib/src/mirrors_used.dart b/pkg/compiler/lib/src/mirrors_used.dart
|
| index dde7af17c862b341cba2a7f42e37f94517287b79..4b80f81a19f1885f057b69f30cb0420bc0548dfb 100644
|
| --- a/pkg/compiler/lib/src/mirrors_used.dart
|
| +++ b/pkg/compiler/lib/src/mirrors_used.dart
|
| @@ -252,7 +252,8 @@ class MirrorUsageAnalyzer {
|
| metadata.ensureResolved(compiler.resolution);
|
| ConstantValue value =
|
| compiler.constants.getConstantValue(metadata.constant);
|
| - Element element = value.getType(compiler.commonElements).element;
|
| + ResolutionDartType type = value.getType(compiler.commonElements);
|
| + Element element = type.element;
|
| if (element == compiler.commonElements.mirrorsUsedClass) {
|
| result.add(buildUsage(value));
|
| }
|
|
|