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

Unified Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 11052011: Fix some warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 2 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
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index a9eef617d1ffbe3e6cad46d712def800e5bf42c3..904423e4c200f88f721624be4b82e2d5535683af 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -132,8 +132,9 @@ class DartBackend extends Backend {
workQueue.addAll(
classMembers.getKeys().map((classElement) => classElement.type));
workQueue.addAll(compiler.resolverWorld.isChecks);
- DartType typeErrorType =
- compiler.coreLibrary.find(new SourceString('TypeError')).type;
+ Element typeErrorElement =
+ compiler.coreLibrary.find(new SourceString('TypeError'));
+ DartType typeErrorType = typeErrorElement.computeType(compiler);
if (workQueue.indexOf(typeErrorType) != -1) {
return false;
}
« no previous file with comments | « lib/compiler/implementation/constants.dart ('k') | lib/compiler/implementation/dart_backend/placeholder_collector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698