Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 10855220: Fix issue 4562 by giving a proper error message rather than crashing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index 7b043fa1d85182488b67a8fae719e8a1fbe0f236..ce77b519b20885c37ca0eb5b2b83fa7c64084637 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -509,7 +509,7 @@ class InitializerResolver {
ResolverTask resolver = visitor.compiler.resolver;
final SourceString className = lookupTarget.name;
result = lookupTarget.lookupConstructor(className, constructorName);
- if (result === null) {
+ if (result === null || !result.isGenerativeConstructor()) {
String classNameString = className.slowToString();
String constructorNameString = constructorName.slowToString();
String name = (constructorName === const SourceString(''))
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698