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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 141823002: Use Object as supertype in face of invalid supertypes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
index 3f03c4edecebf9a8694f1008537b8fb896b078fd..cadfcc34f1f7d30f3af4f1d9d59d30957753aa9e 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -4111,15 +4111,15 @@ class ClassResolverVisitor extends TypeDefinitionVisitor {
if (supertype != null) {
if (identical(supertype.kind, TypeKind.MALFORMED_TYPE)) {
compiler.reportError(superclass, MessageKind.CANNOT_EXTEND_MALFORMED);
- return null;
+ return compiler.objectClass.computeType(compiler);
karlklose 2014/01/28 13:30:03 Extract a getter for this type. Also it should be
Johnni Winther 2014/01/29 10:26:09 Done.
} else if (!identical(supertype.kind, TypeKind.INTERFACE)) {
compiler.reportError(superclass.typeName,
MessageKind.CLASS_NAME_EXPECTED);
- return null;
+ return compiler.objectClass.computeType(compiler);
} else if (isBlackListed(supertype)) {
compiler.reportError(superclass, MessageKind.CANNOT_EXTEND,
{'type': supertype});
- return null;
+ return compiler.objectClass.computeType(compiler);
}
}
return supertype;
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698