| Index: pkg/compiler/lib/src/patch_parser.dart
|
| diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart
|
| index 9f510363de32bacdee68c312ec78a6a07d61111d..4e6ea8c40886cddfec8b2c2b4d5de4f802132513 100644
|
| --- a/pkg/compiler/lib/src/patch_parser.dart
|
| +++ b/pkg/compiler/lib/src/patch_parser.dart
|
| @@ -432,7 +432,8 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> {
|
| void validate(Compiler compiler, Element element,
|
| MetadataAnnotation annotation, ConstantValue constant) {
|
| DartType annotationType = constant.getType(compiler.coreTypes);
|
| - if (annotationType.element != compiler.nativeAnnotationClass) {
|
| + if (annotationType.element !=
|
| + compiler.commonElements.nativeAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
| reporter.internalError(annotation, 'Invalid @Native(...) annotation.');
|
| }
|
| @@ -500,7 +501,8 @@ class PatchAnnotationHandler implements EagerAnnotationHandler<PatchVersion> {
|
| void validate(Compiler compiler, Element element,
|
| MetadataAnnotation annotation, ConstantValue constant) {
|
| DartType annotationType = constant.getType(compiler.coreTypes);
|
| - if (annotationType.element != compiler.patchAnnotationClass) {
|
| + if (annotationType.element !=
|
| + compiler.commonElements.patchAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
| reporter.internalError(annotation, 'Invalid patch annotation.');
|
| }
|
|
|