| 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 e4aec64cdb2529bbe8f14092446bc13e1ea5ab44..45ff58527f6cd1a05229df78834f44eaf1fe6a23 100644
|
| --- a/pkg/compiler/lib/src/patch_parser.dart
|
| +++ b/pkg/compiler/lib/src/patch_parser.dart
|
| @@ -421,7 +421,7 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> {
|
| ResolutionDartType annotationType =
|
| constant.getType(compiler.commonElements);
|
| if (annotationType.element !=
|
| - compiler.commonElements.nativeAnnotationClass) {
|
| + compiler.backend.helpers.nativeAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
| reporter.internalError(annotation, 'Invalid @Native(...) annotation.');
|
| }
|
| @@ -491,7 +491,7 @@ class PatchAnnotationHandler implements EagerAnnotationHandler<PatchVersion> {
|
| ResolutionDartType annotationType =
|
| constant.getType(compiler.commonElements);
|
| if (annotationType.element !=
|
| - compiler.commonElements.patchAnnotationClass) {
|
| + compiler.backend.helpers.patchAnnotationClass) {
|
| DiagnosticReporter reporter = compiler.reporter;
|
| reporter.internalError(annotation, 'Invalid patch annotation.');
|
| }
|
|
|