| Index: lib/build/html_import_annotation_recorder.dart
|
| diff --git a/lib/build/html_import_annotation_recorder.dart b/lib/build/html_import_annotation_recorder.dart
|
| index c320862bae5138421d926082ffbfcc04d15f6e33..ba5d2abad5a99d35db6753f174c3bfba8e45399a 100644
|
| --- a/lib/build/html_import_annotation_recorder.dart
|
| +++ b/lib/build/html_import_annotation_recorder.dart
|
| @@ -34,6 +34,10 @@ class HtmlImportAnnotationRecorder implements InitializerPlugin {
|
| type = annotationElement.returnType;
|
| } else if (annotationElement is PropertyAccessorElement) {
|
| type = annotationElement.variable.propagatedType;
|
| + if (type == null) {
|
| + type = pluginData.resolver.evaluateConstant(annotationElement.library,
|
| + pluginData.initializer.annotationNode.name).value.type;
|
| + }
|
| } else {
|
| logger.error('Unsupported annotation type. Only constructors and '
|
| 'properties are supported as initializers.');
|
|
|