| Index: lib/compiler/implementation/resolver.dart
|
| diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
|
| index ea7e5fc72bac36ecc8cfa6a32051041f58985ee3..1123f73bbf598d1d218ab15e9f4c3f7c29bc8374 100644
|
| --- a/lib/compiler/implementation/resolver.dart
|
| +++ b/lib/compiler/implementation/resolver.dart
|
| @@ -2338,11 +2338,11 @@ class ConstructorResolver extends CommonResolverVisitor<Element> {
|
| fullConstructorName = '$fullConstructorName'
|
| '.${constructorName.slowToString()}';
|
| }
|
| - ResolutionWarning message =
|
| + ResolutionWarning warning =
|
| new ResolutionWarning(MessageKind.CANNOT_FIND_CONSTRUCTOR,
|
| [fullConstructorName]);
|
| - compiler.reportWarning(diagnosticNode, message);
|
| - return new ErroneousFunctionElement(message, cls);
|
| + compiler.reportWarning(diagnosticNode, warning);
|
| + return new ErroneousFunctionElement(warning.message, cls);
|
| }
|
| return result;
|
| }
|
|
|